Reputation: 24118
I have a bamboo plan to run selenium automation tests on my app.
This bamboo plan has parallel stages to run selenium tests simultaneously on multiple agents. This is done to save time. If all tests were executed sequentially, it would take about 10 hours.
When the app which is tested evolves with time, more parallel stages are added to the bamboo plan.
When a bug fix is provided for an older version of the app, I need to run the test plan with at the correct position of the test suite git repository. I do this by using a plan variable to specify the test suite repository branch.
But, the problem is, bamboo plan also evolves with the application because I add more parallel stages when the tested app evolves. So, reverting to the correct source control position of the test suite repository is not sufficient. The bamboo plan also should revert to the state it was when the bug fixed release was originally given.
Is there any way I can achieve this?
Upvotes: 0
Views: 788
Reputation: 1619
You can do this using Bamboo Specs(a newly introduced feature since Bamboo 6.0). This allows the entire configuration of Bamboo plans to be stored as Java source code. You can modify this code and publish the plan as desired. You can also extend this by automating the changes using Repository Stored Specs.
All you have to do is to export your existing plan by going to the respective plan's configuration page and click on Actions > View plan as Bamboo Specs
. Cross-check the generated code with Bamboo Specs reference manual and to compare original and generated plan.
Hope that helps.
Upvotes: 2