Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"Build when a change is pushed to BitBucket" does not work

Eric Dolce
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2020

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.

1 answer

0 votes
Edward Manning
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 21, 2020

That option only really applies to pushes I think:

https://support.cloudbees.com/hc/en-us/articles/115000051092-How-to-Trigger-Non-Multibranch-Jobs-from-Bitbucket-Cloud-

 

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events