How to setup a plan to run in different configurations ?

Hello everybody,

I am new to Bamboo and trying to understand how it works. I have a c++ project (cmake based) where I want the following steps to be executed:

Configure -> Build -> Test -> Package -> Distribute

I presume this is my "Build Plan".I created a single job with 5 tasks. Is that the correct way of doing it ? or should I split it in Jobs within Stages ?

Secondly, I want this plan to be ran on different platforms (Ubuntu, Mac) and with different configurations (gcc 3.x vs 4.x, Debug vs Release mode).

I have therefore created 2 remote agents, one on mac one on Ubuntu. Apparently here I have to duplicate the plan because I can't run the same plan on two different agents. Is that correct ?

I also want to alter the configure task so that I can run against different compilers or with different compiler flags. Do I have again to duplicate my plan ?

At this point, I have already 16 plans (all combinations of the various configurations). If now I realize that I need 1 more step in my plan, do I seriously have to edit the 16 plans ? Or did I miss something ? Is there any ways of parameterizing a plan to avoid this issue ?

Thank you in advance,

Barth

1 answer

1 accepted

1 votes

I created a single job with 5 tasks. Is that the correct way of doing it ? or should I split it in Jobs within Stages ?

That's correct. Stages would also work, but you'd have to pass the artifact between them which would likely increase the build time.

Apparently here I have to duplicate the plan because I can't run the same plan on two different agents. Is that correct ?

Yes, that's right.

Is there any ways of parameterizing a plan to avoid this issue ?

Unfortunately not.

Ok, thank you very much. Now all is clear :)

regards

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,069 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