Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Issue while adding build key in "Required build" merge check for pull requests in a repository

priyanka Mankar June 6, 2022

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

1 answer

0 votes
Ora July 17, 2022

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

https://plugins.jenkins.io/atlassian-bitbucket-server-integration/Bitbucket Server Integration | Jenkins plugin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events