Hello,
I have several plans, each one run manually as "customised build", where we can select which stages we are going to run.
I need to create another plan, that will run all these plans with an specific stage (this must be a parameter, chosen by the user during a manual run).
This plugin was recommended in a thread, however I didn't find a way to pass a specific stage.
Is there a way to achieve this with Bamboo?
Hi @Junia Porto,
Thank you for your inquire.
I need to create another plan, that will run all these plans with an specific stage (this must be a parameter, chosen by the user during a manual run).
Based on the description provided, this is not a straightforward thing to accomplish, and the reason for that relates to ...with an specific stage...
Lets say you have PROJ-PLAN with the following configuration:
When you select Run customized... by selecting Stage Three, this will automatically select Stage Two to be executed, and this behavior will be the same when making use of Bamboo REST API.
(POST /queue/{projectKey}-{buildKey}?stage&executeAllStages&customRevision):
With the above said, lets say you created a PROJ-TRIGGER that will be used to trigger PROJ-PLAN. Then, you should add an Script task on PROJ-TRIGGER with:
curl -k -u BAMBOO_USERNAME:BAMBOO_PASSWORD \
-H "X-Atlassian-Token: no-check" \
-d "bamboo.variableKey=variableValue" \
-X POST "http://localhost:8085/rest/api/latest/queue/PROJ-PLAN?executeAllStages=false&stage=Stage+Two"
In the example above, you would have:
Hope the above finds you well.
Kind regards,
Rafael
Thank you, we are going to test this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.