I configured jenkins in spinnaker as follows and setup spinnaker pipeline.
jenkins: # If you are integrating Jenkins, set its location here using the bas
To resolve this issue I unchecked "Prevent Cross Site Request Forgery exploits" in jenkins.com/configureSecurity section and it started working.