Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to move a job from one stage to another using Bamboo Command Line Interface (CLI) app.

Instructions

Use the moveJob action to move the job from one stage to another.

  1. Ensure that the CLI client file is updated with the required information. 

    Below is the screenshot of a plan under the Default Stage.
    Image Modified
  2. Execute the below CLI action move the job.

    Code Block
    themeMidnight
    --action moveJob --plan "TR-TP" --job "job1" --stage "test1"

    The output of the CLI action:

    Code Block
    themeMidnight
    Job TR-TP-JOB1 moved to stage 'test1'.


Info

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.