In what order do Bamboo child build plans execute? How can I dictate that order of execution?

Bamboo v5.0, Windows Server 2008, JIRA v6.1, C# projects.

I want to run a series of 3 Bamboo build plans when performing a version Release from JIRA. It is critical that they run in a specific order (each build output is pushed to a local NuGet server).

To complicate matters slightly, I need the JIRA version number to be available to all 3 build plans. The variable ${bamboo.jira.version} is only available to the parent build plan, not to the children (a possible 'deficiency' that has been noted by others).

To take care of the JIRA version number however, I have configured the parent build plan to write the JIRA version being released to files that are accessible to each child build plan - clunky, but it works.

But here is the real problem - I have added each of the child build plans via the Dependencies tab of the parent build plan. Before I click the Save button, they appear in the list in the correct order from top to bottom.

After clicking the Save button however, Bamboo re-orders them alphabetically!

My question therefore is, in which order do child build plans actually execute?

If it is not in the same order as they were added in the parent (ie not in alphabetical order), then what options do I have to enforce the order?

NOTE: I have tried 'chaining' the child builds with the 'master' parent only callling the first, but Bamboo seems to get confused about which are children are now 'parents' and some children run more than once.

2 answers

1 accepted

0 votes
Accepted answer

I have been unable to find a completely satisfactory way to resolve this. However, adding all the tasks to a single job is what I originally had and is now the build configuraiton that I have fallen back to.

I have made modifcations to the MSBuild targets being called to ensure fine control of some information being passed from one build to another is correct.

0 votes

The 'chaining' approach should work, if it does not, it's a bug. Can you put all plans in the same plan as jobs, each in its own stage? That would guarantee the order as well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,158 views 14 11
View question

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