/
How to clone the environment of a deployment project using Bamboo CLI
How to clone the environment of a deployment project using Bamboo CLI
This article explains how to clone the environment of a deployment project using Bamboo Command Line Interface (CLI).
Instructions
Use cloneEnvironment action to clone the environment of a deployment project in Bamboo. It clones the environment and the respective settings within the deployment project.
Execute the following action to clone the environment:
--action cloneEnvironment --deploymentProject "Deployment for test001" --environment "TEST1" --name "QA CLONE" --description "clone of TEST1 Environment"
The output of the given CLI command appears in the terminal as:
Environment 'QA CLONE' added to deployment project 'Deployment for test001' with id 93224961.
The outcome of the above example is as shown:
The parameters used with the action are:
- --deploymentProject value refers to the name or ID of the deployment project.
- --environment value refers to the environment name.
- --name value refers to the cloned environment name.
- --description value refers to the environment description.
It is recommended to test the command in a non-production environment before running it in production, or run the action with --simulate parameter to verify the behavior 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 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 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 export a deployment project to a file using Bamboo CLI
How to export a deployment project to a file 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 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)
More like this