Story
We have been on a journey with Plan Creation Scripting for almost 2 years to realize the goal of having Bamboo configuration as code. Internally, we have 100's of plan configurations under source control with the ability to deploy them to multiple Bamboo servers in an instance. It has proven to be an highly productive endeavor. We made the investment to create these script from scratch and, in the process, significantly improved the performance and reliability of our builds. We are probably on our 3rd generation of major improvements in our plan construction including standardization, common elements, support tools, and more maintainable scripts.
Now there has been a major advances with Bamboo CLI 6.4 with the addition of exportPlan and the ability to kick start configuration from source.
Atlassian Endorses Configuration as Code for Bamboo
With Bamboo 6.0, has made the initial steps to support Configuration as code with the release of Java based configuration source. They have articulated the advantages of this approach - Advantages of Configuration as Code.
Options
Source | Bamboo | Advantages |
---|---|---|
Java | 6.0 and higher |
|
CLI | 5.10 and higher |
|
Export Existing Plans
Whatever option you choose, the new Bamboo CLI exportPlan action can help you with your journey and automation.
--action exportPlan --plan EXAMPLE-PLAN --type java --file example.java
--action exportPlan --plan EXAMPLE-PLAN --file example.txt