How to remove all stages in Bamboo plan using Bamboo Command Line Interface (CLI)
This article explains how to remove all stages in a Bamboo plan using the Bamboo Command Line Interface (CLI) app.
Instructions
Use the runFromStageList and removeStage actions to remove all stages in a Bamboo plan.
Run the following CLI action:
--action runFromStageList --plan "TR-TP" --common "-a removeStage --plan @plan@ --stage @stage@"
Before executing the CLI action:
After executing the CLI action:
The parameter used with the action is:- --plan value refers to the plan name in Bamboo.
- --stage value refers to the stage name in Bamboo.
- It is recommended to test the commands in a non-production environment or run the action with --simulate parameter to verify the behavior before deploying.