Versions Compared

Key

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

This article explains how to clone the environment of the deployment project using Bamboo CLI.

...

  • Execute the following action to clone the environment.

    Code Block
    themeMidnight
     --action cloneEnvironment --deploymentProject "Deployment for mknew test001" --environment "TEST1" --name "QA CLONE" --description "clone of TEST1 Environment"
    
    


    The output of the CLI command:

    Code Block
    themeMidnight
    Environment 'QA CLONE' added to deployment project 'Deployment for mknew test001' with id 93224961.


    The above example is shown in the below screenshot.
    Image Modified

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.
Info
  • It is recommended to test the command in a non-production environment before running in productionor, run the action with --simulate parameter to verify the behaviour before deploying