Jenkins: Access bitbucket payload in shell Jenkins: Access bitbucket payload in shell jenkins jenkins

Jenkins: Access bitbucket payload in shell


You can trigger Jenkins with Generic Webhook Trigger instead.

Then you can create a variable everything having the JSONPath $. Then everything will resolve to the entire JSON payload. So you can have a shell script build step like:

echo $everything