This article explains how to add Jira CLI task in a Bamboo job with Bamboo Command Line Interface (CLI).
Instructions
Use the addTask action to create Jira CLI action tasks in the Bamboo job. Refer to the following sample command:
Code Block | ||
---|---|---|
| ||
--action addTask --plan DEMO-PLAN --job JOB1 --description "Create JIRA issue" --taskKey org.swift.bamboo.acli:jira --field scriptLocation=INLINE --field scriptBody="--action createIssue --project BL --type Task --summary \"Bamboo Build\" --server "Jira_Server" --user "Jira_Username" --password "Jira_Password" " |
In the above action:
- --plan value refers to a Bamboo plan key.
- --job value refers to the Bamboo job key.
- --taskKey value refers to the Bamboo task type.
- --description value refers to the task description.
- --field parameter refers to a specific Jira CLI task configuration.
- --field scriptLocation=INLINE refers to the inline action type.
- --field scriptBody="--action createIssue --project BL --type Task --summary \"Bamboo Build\" --server "Jira_Server" --user "Jira_Username" --password "Jira_Password" " refers to the Jira CLI action to be added as a task in the Bamboo job.
- Additionally, --disable parameter can be used to disable the task, and --final parameter can be used to script the task as a final task.
Info |
---|
|