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.
Execute the below following CLI action:
Code Block theme Midnight --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 theme Midnight Requirement added with id 2392067.
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 withwith--simulate parameter to verify the behaviour before deploying. |