/
How to add a requirement to a deployment environment using Bamboo Command Line Interface (CLI)
How to add a requirement to a deployment environment using Bamboo Command Line Interface (CLI)
This article explains how to add a requirement to a deployment environment using the Bamboo Command Line Interface (CLI) app.
Instructions
Use the addEnvironmentRequirement action to add a requirement to a deployment environment.
Execute the following CLI action:
--action addEnvironmentRequirement --deploymentProject "DeployProjectQA" --environment "DEV" --requirement "system.builder.ant.Ant"
For this example, the output of the above action is as follows:
Requirement added with id 2392067.
Verify the requirements under Agents assignment as follows:
In the mentioned action:
- --deploymentProject value refers to the deployment project name or ID.
- --requirement value refers to the plan requirement key, either a custom key or a system capability key.
- --environment value refers to the deployment environment name or ID.
It is recommended to test the commands in a non-production environment or run the action with--simulate parameter to verify the behaviour before deploying.
Related content
How to add an environment to deployment project using Bamboo CLI
How to add an environment to deployment project using Bamboo CLI
More like this
How to add environment task to a deployment project using Bamboo CLI
How to add environment task to a deployment project using Bamboo CLI
More like this
How to add environment variables to a deployment project using Bamboo CLI
How to add environment variables to a deployment project using Bamboo CLI
More like this
How to add Environment trigger to a deployment project using Bamboo CLI
How to add Environment trigger to a deployment project using Bamboo CLI
More like this
How to clone the environment of a deployment project using Bamboo CLI
How to clone the environment of a deployment project using Bamboo CLI
More like this
How to add a requirement to a Bamboo plan using CLI
How to add a requirement to a Bamboo plan using CLI
More like this