Hi Team,
I have a usecase wherein I want to trigger pull-request build only for few target branches (like master and TEST). Post exploring many options I came across "Required Build" section in Bitbucket. I selected "Select protected target branches" but facing issue for "Add builds".
I am not getting which "build key" i need to add so that whenever pull request have required target branch, it will trigger pull-request build. My pull-request build is set up on enterprise cloud bees Jenkins with path something similar to -<jenkins_instance_url>/job/REG/job/123456/job/COM/job/123456.test.req.build.bitbucket/
For Bitbucket to Jenkins connectivity, i am using "Webhook to Jenkins for Bitbucket Server" which is using "Git plugin".
Please help me to understand which build key i should use here.
Thanks in advance for help.
Regards
Build key is the name of the job (no need for full path)
Make sure you are using "Bitbucket Server Integration" plugin
"To use required builds, you must have Bamboo 7.1+ or the Bitbucket Server Integration Plugin version 2.0.0+"
See also here:
https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.