How to export a deployment project to a file using Bamboo CLI
This article explains how to export a deployment project to a file, that in turn, can be used to create another deployment project using Bamboo Command Line Interface (BCLI) app.
Instructions
Use the exportDeploymentProject action to export a deployment project to file that can be used for deployment project creation. A deployment project in Bamboo is a container for holding the software project being deployed.
Execute the following command to export a deployment project:
--action exportDeploymentProject --file "DeploymentProject.csv" --deploymentProject "Deployment for mknew test001" --dateFormat "yyyy.MM.dd"
The exported file shows the details similar to the output of the given example as follows:
The following parameters are used in the above command:
- --file value refers to the file name which is exported as CSV.
- --deploymentProject value refers to the deployment project name.
It is recommended to test the actions in a non-production environment, or run the action with --simulate parameter to verify the behavior before deploying.