pull request and bu

we would like to have the following mechanism for PR

 

1) create a PR

2) send to review

3) approved to be merged

4) pre -merged - triggers a CI build

5) if CI fails- the merge is declined. 

 

how do I connect the CI status with the PR in hand ? 

1 answer

Hey Gabby.

It's possible to set Merge Checks in Bitbucket to prevent a merge from happening.

Bitbucket Bitbucket has the following default merge checks:

  • All reviewers approve - requires all reviewers to approve a pull request before merging.
  • Minimum approvals - requires at least the specified number of approvals before merging.
  • Minimum successful builds - requires at least the specified number of successful builds before merging.
  • No incomplete tasks - requires all tasks to be complete before merging.

Besides that you can also create your own merge check plugin if you need to adapt it to your workflow.

You can see all and even more information on the article below

https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html

Hope that helps.

Douglas Gnoato

Thanks Douglas,

I am just making I was understood. I would like to have sort of a pre merge hook which will trigger the build.if build had passed, it will allow the PR to be merged.otherwise, it will deny

So the PR is pending until the build ends.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

440 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you