This article explains how to add labels to all the builds in a particular plan using the Bamboo Command Line Interface (CLI) app.
Instructions
Use the runFromBuildList action along with addLabels to add labels in all the builds under the Bamboo plan.
Execute the below CLI action.
Code Block theme Midnight --action runFromBuildList --plan "TR-TP" --common "-a addLabels --build "@build@" --labels run2"
Here is the output of the action:
Code Block theme Midnight Run: -a addLabels --build TR-TP-10 --labels run2 'run2' labels were added to TR-TP-10. Run: -a addLabels --build TR-TP-9 --labels run2 'run2' labels were added to TR-TP-9. Run: -a addLabels --build TR-TP-8 --labels run2 'run2' labels were added to TR-TP-8. Run: -a addLabels --build TR-TP-7 --labels run2 'run2' labels were added to TR-TP-7. Run: -a addLabels --build TR-TP-6 --labels run2 'run2' labels were added to TR-TP-6. Run: -a addLabels --build TR-TP-5 --labels run2 'run2' labels were added to TR-TP-5. Run: -a addLabels --build TR-TP-4 --labels run2 'run2' labels were added to TR-TP-4. Run: -a addLabels --build TR-TP-3 --labels run2 'run2' labels were added to TR-TP-3. Run: -a addLabels --build TR-TP-2 --labels run2 'run2' labels were added to TR-TP-2. Run: -a addLabels --build TR-TP-1 --labels run2 'run2' labels were added to TR-TP-1.
Check the below screenshot to see how it appears after adding the labels:
Info |
---|
|