Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Concurrent Branch Pipelines

Curtis
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.
October 23, 2025

We are migrating an application from Bamboo to Bitbucket Pipelines. This application is unique in that it should only have one build running per branch at a time. This wasn't a problem in Bamboo, as that was the default. But in Bitbucket Pipelines, you push a 2nd commit for the same branch, it will execute another pipeline and build for the same branch.

I know Pipelines allows only one execution going per Deployment environment, but I've not seen any configuration to do this for non-deployments and per branch.

I could limit it to 1 by having a single self-hosted runner, but then only one build would happen at a time for any branch. Two different branches can build concurrently, we just can't have the same branch have a 2nd build triggered.

What is our best option to move forward with using Bitbucket Pipelines to replace Bamboo in this regard?

Thanks.

0 answers

Suggest an answer

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

Atlassian Community Events