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

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 Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,068 views 0 5
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