Wait for previous plan to finish building before starting the next one

I have set up a Plan in Bamboo (running on Ubuntu 12.04) with 3 Stages. I'm just using the default Agent.

Builds are manually triggered via a POST request to the REST API. I want builds to be able to be queued so I've set number of concurrent builds to a high value (which seemed to be the only way to achieve this), but I also want one build to finish before the next one begins.

At the moment this is what's happening if I send 3 build requests in quick succession:

  • Build #1 Stage 1
  • Build #2 Stage 1
  • Build #3 Stage 1
  • Build #1 Stage 2
  • Build #2 Stage 2
  • Build #3 Stage 2
  • Build #1 Stage 3
  • Build #2 Stage 3
  • Build #3 Stage 3

This is what I would like to happen:

  • Build #1 Stage 1
  • Build #1 Stage 2
  • Build #1 Stage 3
  • Build #2 Stage 1
  • Build #2 Stage 2
  • Build #2 Stage 3
  • Build #3 Stage 1
  • Build #3 Stage 2
  • Build #3 Stage 3

Anyone know how to achieve this? Stage 2 takes about half an hour and Stage 3 sends an email, so if 20 build requests are submitted then we have to wait around 10 hours for all of the Stage 2s to complete before the emails are finally sent all at once, rather than receiving one email every half hour or so.

1 answer

This widget could not be displayed.

Hi John,

I am wondering if setting up plan build dependencies could help you. Can you please give it a try?

I hope this helps!

Kind regards,
Felipe Kraemer
Atlassian Support

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
Join discussion

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