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

How to force all steps to pass before merge

Łukasz Naporski February 8, 2024

Hi,
i looked through the available merge checks and did not find any option to require further steps from the pipeline. I would like the merge option to be available after completing all pipeline steps. Any suggestions?

2 answers

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2024

@Łukasz Naporski 

Right, so Bitbucket doesn't have built-in support for this feature. However, you could try to work around this by initially creating a pending build status with the commit status API, and then updating that status in the third step of your process. Also, set the minimum builds to two. 

Alternatively, we're planning to introduce a feature in Flowie, our Bitbucket add-on, that will allow you to easily specify checks like this for your pipelines, along with the other existing checks, in the near future which could be helpful too!

#sorry, meant to reply this on the thread below.

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2024
Łukasz Naporski February 13, 2024

Unfortunately this option won't work this way. Despite setting the requirement for 3 successful builds, it did not bring the intended effect

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2024

Oh, think I see what you mean... Is it marking the build as passed once the first step is run, not necessarily when it completes all the steps in the pipeline? You have manual steps?

 

Like Łukasz Naporski likes this
Łukasz Naporski February 15, 2024

I would like to force the passage of a minimum of 3 of the 4 steps. So that the ability to merge a feature would only be available after passing the 3rd step minimumbb.pngbb.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events