I am using Jenkins and bitbucket integrations. I want to trigger a build when a PR is created. I created a webhook on bitbucket its returning 200 response but no build is getting triggered. I have enabled "Build when a change is pushed to BitBucket" option in the build configuration.
That option only really applies to pushes I think:
Although you can select from a list of triggers - of which PR is one.
When we did ours (PR approach) we used the generic web hook trigger in Jenkins and the PR trigger in Bitbucket. We then had to parse the JSON and pull out the target/destination branches and write some steps to create a virtual merge in jenkins before doing the build.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event