Versions Compared

Key

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

This article explains how to add a requirement to a deployment environment using environment using the Bamboo Command Line Interface (CLI) app.

Instructions

Use the the addEnvironmentRequirement action to add a requirement to a deployment environment.

  1. Execute the below following CLI action: 

    Code Block
    themeMidnight
    --action addEnvironmentRequirement --deploymentProject "DeployProjectQA" --environment "DEV" --requirement "system.builder.ant.Ant"

    Here is For this example, the output of the above action is as follows:

    Code Block
    themeMidnight
    Requirement added with id 2392067.


  2. Verify the requirements under the under Agents assignment as follows:

    In the mentioned action,:

    • --deploymentProject deploymentProject value refers to the deployment deployment project name or idID.
    • --requirement value refers to the plan plan requirement key, either a custom key or a system capability key.
    • --environment value refers to the deployment deployment environment name or idID.
Info

It is recommended to test the commands in a non-production environment or run the action

with 

with--simulate parameter to verify the behaviour before deploying.