Skip to end of banner
Go to start of banner

How to add a job to a stage of a plan using Bamboo Command Line Interface (CLI)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

This article explains how to add a job to a stage of a plan using Bamboo Command Line Interface (CLI) app. 

Instructions

Use addJob action to add a job to a stage of a plan. A Bamboo job is a single build unit within a plan and it controls the order in which tasks are performed. Each new plan created in Bamboo contains at least one job known as the 'Default Job'.

  • Execute this action to add a job to the stage of a plan:

    --action addJob --plan "MKTES-TP" --description "Job to execute the test build" --stage "stage test" --job "Run job"





The parameters used in the above action are:

--plan value, refers to the plan key.
--description value, refers to the Job description.
--stage value, refers to the stage name where you want to add the job.
--job value, refers to the Job name.


It is recommended to test the command in a non-production environment before running in production, or, run the action with --simulate parameter to verify the behaviour before deploying.

  • No labels