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

Enable merge check "Check for {#} passed builds on the last commit" only for specific PRs

Azam Afzaal Tahir July 10, 2020

Hello support team,

 

I am an employee in a well-know IT company. In our software development process, we actively use Bitbucket and other Atlassian products.

I am looking for a solution regarding merge checks feature https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/ .

A jenkins build is triggered when a user creates a pull request on Bitbucket. After the build is completed, the result of this build is notified back to Bitbucket server through "Bitbucket Server Notifier" plugin. To block user from merging the PR, i can put a merge check 

Check for {#} passed builds on the last commit

But the problem is even if the PR does not have any build, it will still show warning and block the user to merge. 

Note: The jenkins job is triggered only when a certain PR meets some condition (e.g. if the target branch belongs to defined set of branches)

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events