Versions Compared

Key

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

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

Instructions

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

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

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

    The output of the CLI action is belowas shown:

    Code Block
    themeMidnight
    Plan dependency options set.
    Screenshot of the plan

    Plan before adding the dependency:

    Image Removed
    Screenshot of the plan Image Added
    Plan after executing the CLI action to set the dependency:
    Image RemovedImage Added
  • Execute the below following 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 Plan after executing the CLI action to set the dependency:

    Image RemovedImage Added

The parameters used with the action are:

  • --plan value refers to the plan key.
  • --childPlans value refers to the plan key you want to be set as a dependency.
Info
  • 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.

...