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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.