Skip to end of banner
Go to start of banner

How to set the dependency of a plan using Bamboo 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 7 Current »

This article explains how to set the dependency of a plan using the Bamboo Command Line Interface app.

Instructions

Use the setDependencyOptions action to set the dependency of a plan. Trigger a plan build when another plan's build has successfully completed.

  • Execute the following command to set the dependency of the plan:

    --action setDependencyOptions --plan "MKTES-PLANA" --childPlans "MKTES-PLANB"

    The output of the CLI action is below:

    Plan dependency options set.
    Screenshot of the plan before adding the dependency:

    Screenshot of the plan after executing the CLI action to set the dependency:



  • Execute the below CLI action to set more than one plan dependency:

     --action setDependencyOptions --plan "MKTES-PLANA" --childPlans "MKTES-PLANB,MKTES-TP"

    Screenshot of the plan after executing the CLI action to set the dependency:

The parameters used with the action are:

  • --plan value refers to the plan key.
  • --childPlans value refers to the plan key you want to set as a dependency.
  • It is recommended to test the action in a non-production environment before running in productionor, run the action with --simulate parameter to verify the behavior before deploying.
  • No labels