Versions Compared

Key

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

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

Instructions

Use cloneEnvironment action to clone the environment of the a deployment project in Bamboo. It will clone clones the environment and the respective settings withing within the Deployment deployment project.

  • Execute the following action to clone the environment.:

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


    The output of the above CLI command:

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


    The outcome of the above example is shown in the below screenshot.:


The parameters used with the action are:

...

Info
  • It is recommended to test the command in a non-production environment before running it in production, production or, run the action with --simulate parameter to verify the behaviour before behavior before deploying