This article explains how to add Script task in Bamboo Job using Bamboo Command Line Interface (CLI)
...
Code Block | ||
---|---|---|
| ||
--action addTask --plan DEMO-NEW --job "JOB1" --taskKey SCRIPT --description "Scripted Task " --field scriptLocation=INLINE --field scriptBody="exit -1" |
In above action:
- --plan value refers to a Bamboo plan key.
- --job value refers to the Bamboo job key.
- --taskKey value refers to Bamboo task type.
- --description value refers to task description.
- --field parameter refers to specific script fieldsconfiguation.
- Additionally, --disable parameter can used to disable the task and --final parameter to script task as final task.
Info |
---|
It is recommended to test it in a non-production environment or run the action with --simulate parameter to verify the behavior before deploying. |
...