Versions Compared

Key

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

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

Instructions

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

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

    Code Block
    themeMidnight
    --action setDependencyOptions --plan "MKTES-PLANA" --childPlans "MKTES-PLANB"

    The output of the CLI action:

    Code Block
    themeMidnight
    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.

    Code Block
    themeMidnight
     --action setDependencyOptions --plan "MKTES-PLANA" --childPlans "MKTES-PLANB,MKTES-TP"

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


...

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