What is the time to live for a docker container?

I have an issue where I'd like to queue up different builds for a specific branch.  I don't want builds to run at the same time; one build could take about 15 mins to complete and there may be a number of commits that occur for a specific branch during that time. ... We're seeing if we can create a script that will check for the presence of an item within our application, and run the maven command once the item is no longer present.  However, we're not sure if this method will work due to the time to live for a docker container.  How long will a docker container stay up and running?

2 answers

0 votes

Hi Daniel,

The docker container runs for 2 hours and is then stopped and the build will fail. We are looking into these sorts of parallel build restrictions. Please add an issue to https://bitbucket.org/site/master/ detailing what you want from this feature. That way when we come to implementing this we can take your feedback into account.

0 votes
Joshua Tjhin Atlassian Team Oct 26, 2016

Hi Daniel,

Sounds like you would like a way to limit concurrency like described in https://bitbucket.org/site/master/issues/12821/sequential-pipelines-disable


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 ...

1,909 views 7 10
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