Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Duplicating plans that differ by just a few variables

Lee Winder June 10, 2014

We're starting to build up a large number of plans that simply different by a few variables.

For example, we currently have 21+ plans (soon to double at least) where the only difference between them is the application name, a couple of paths and the git repository path.

Due to how this is set up (with 21 distinct plans all with the same steps) if one changes, I have to change 21 other plans, and the more we have, the more of a maintence nightmare this is going to becomes.

How can I simplify this? Is it possible to have a 'master' plan, which we deviate from by overridding variables or other properties?

If not, is there anything in the Bamboo pipeline that might make this possible in the future, because maintance of plans is going to start becoming a serious time sink for even little changes.

Thanks

2 answers

0 votes
dustin_barnes June 11, 2014

Lee, this problem (as well as code coverage metrics and code quality metrics) is why I'm switching everybody to TeamCity. It has plan templates, nested plan templates, built-in metrics tracking, etc. We're gonna keep bamboo around for the pipeline, but it's really disappointing.

0 votes
cbenard1
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2014

Hi Lee,

I believe that you have two options here.

The first being branched plans in Bamboo: https://confluence.atlassian.com/display/BAMBOO/Using+plan+branches

With a branched plan you'll be able to point the parent plan at a different repo and tweak it as you like. All under one parent plan.

The alternative would be custom, manual run builds: https://confluence.atlassian.com/display/BAMBOO/Running+a+plan+build+manually#Runningaplanbuildmanually-Runningacustomisedmanualbuild

In Bamboo you can perform a manual run of a plan and change variables on the fly for each run. The only downside is that the runs must be manual and cannot be triggered.

Thanks

Turner

Lee Winder June 11, 2014

I don't belive either of those would solve my problem.

Plan branches wouldn't allow us to override variables (and I was under the impression it would need to be the same repository) and we need to trigger the builds automatically (we have repository and time triggered builds), plus I don't want people to have to manually enter the overridden variables everytime they wanted to create a build.

It's not possible to trigger overridden builds via a command line option is it?

It looks like I'm going to have to manually maintain all these plans :(

cbenard1
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2014

Hi Lee,

Variables can definitely be changed in the plan branches: https://confluence.atlassian.com/display/BAMBOO/Using+plan+branches#Usingplanbranches-configurebranch

As for the repository I believe you can use any branch of any repository defined in the initial/master build.

Another tool you may want to check out is Bob Swift's CLI: https://bobswift.atlassian.net/wiki/display/BCLI/Bamboo+Command+Line+Interface

This should allow you to automate any processes externally of Bamboo, such as custom builds.


Thanks

Turner

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events