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

Enable merge button only after auto build success

Geetha December 5, 2022

Enable merge button in the pull request only after auto build success that too specific branch patterns. (branch level) ex: feature/XX_XX -->master PR only need to check  the build status. If auto build is in progress, PR merge button should not enable.

 

Pls let me know if any option for this.

We have 500+ developers, will not wait for auto build to complete and merge the PR which leads wrong code to master branch which is golden source code

1 answer

1 vote
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 5, 2022

Hello Geetha, welcome to the community!

Could you please specify which Bitbucket hosting type (cloud or datacenter/server) you are using? I can then try to help with more specific advice.

Thanks in advance, Ulrich

// Izymes

Geetha December 5, 2022

It’s a data centre /server

 

thank you so much for responding my message. Pls help me. Fyi

 I don’t want minimum successful builds option because it’s a repo level.

I want at branch level… in multi branch pipeline we will only enable specific patterns., because developers volume is high. And we don’t have that much resources of build servers

Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 6, 2022

Hello Geetha,

I understand that you want to check for a successful build on branch (pattern) level, not on repository level before the PR merge button is enabled.

We have come across the same problem and have created an app that can be installed in Bitbucket to do exactly that and more.

With Workzone you can specify merge conditions, including successful builds, on branch level and block the merge button if the condition is not met. [1]

Enforce the (successful build) merge condition at repo level [2]

If you want to get really sophisticated you can set the merge-condition to auto-merge the PR as soon as the successful build result comes in from your CI system [3].

Let me know if that all makes sense.

Best, Ulrich

 

[1] https://izymes.com/docs/workzone-merge-control-configure-automatic-pull-request-merge/

[2] https://izymes.com/docs/properties/

[3] https://izymes.com/docs/workzone-merge-control-test-driven-development-with-merge-control-and-continuous-integration/

Geetha December 6, 2022

Thanks for your time . It works for me. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events