This article explains how to get the list of deployment projects to a file in the Bamboo server using the app, Bamboo Command Line Interface app.
Instructions
Use the getDeploymentProjectList
...
- getDeploymentProjectList: Get
to get a list of deployment projects based on regex filtering of project names
.
To get the list of deployment projects in a project:
...
.
...
Execute the below CLI action
...
with outputFormat 999:
To get the list of all deployment projects in a project with Id, Name, Description, Plan fields.Code Block ./acli mybamboo --action getDeploymentProjectList --outputFormat 999 --file projects.csvtheme Midnight The output on the terminal is similar to:
Code Block --action getDeploymentProjectList --outputFormat 999 --file projects.csv 7 deployment projects in list written to file: /Users/amulyaakula/Downloads/Confluence/CLI_9.3/projects.csv
Below is the output of the file projects.csv:
...
To get the list of all deployment projects in a project on terminal:
Code Block theme Midnight ./acli mybamboo --action getDeploymentProjectList --outputFormat 1
The output on the terminal is similar to:
Code Block ./acli mybamboo --action getDeploymentProjectList --outputFormat 1 7 deployment projects in list "Id","Name","Description","Plan" "3342338","Bamboo CLI","","DEMO-DEM" "3342337","Bamboo UI","","DEMO-DEM" "3342340","Bobswift_Project","","DEMO-DEM" "2588673","DeployProject1","DeployProject1 Description","DEMO-DEM" "2850817","DeployProject2","DeployProject2 Description","DEMO-DEM" "3342341","SQL","","DEMO-DEM" "3342339","Witti","","DEMO-DEM"theme Midnight
The parameters used in the CLI action are
--file
--outputFormat
To get the resultant output in the same terminal remove --file and add --outputFormat 1 in the above CLI action.
Info |
---|
|
...