Can you limit the number of concurrent builds in pipelines?

We're trying to run Maven builds that deploy to a specific set of servers using Pipelines. One potential problem we've encountered is that if multiple users commit and trigger concurrent builds, it may cause problems with deployment.

Is there any way to limit the number of concurrent builds for a branch or force them to run sequentially? Or can we set things up to run just one build at a time?

1 answer

Hi Daniel,

Unfortunately there is no way for a user to specify a limit on the number of concurrent builds. However, we're interested in what you need in this feature. If you'd like to raise a ticket at we'll have a look at this feedback when considering our roadmap.

Hi Thomas,

do you know if there was a ticket raised? I would need exactly the same feature because concurrent builds will cause issues for example when running our integration tests (database reset at start) and for those tests we also deploy our application within the pipeline which is also causing problems when two builds deploy at once. That feature would be really helpful.



Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

627 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot