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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

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