These are the steps you can use to get the environment results of a deployment. You just need to know the plan-key associated with that deployment.Ok, you will also need Curl, jq (command-line JSON processor) on a Unix like terminal.
curl -u <USER>:<PASSWORD> \ -X GET -p <BAMBOO_URL>/rest/api/latest/deploy/project/forPlan?planKey=<PLAN-KEY> \ | jq -r '.[] | "Name: " + .name + "\tdeploymentId: " + (.id|tostring)'
Name: <DEPLOYMENT_NAME> deploymentId: <DEPLOYMENT_ID>
curl -u <USER>:<PASSWORD> \ -X GET -p '<BAMBOO_URL>/rest/api/latest/deploy/project/<DEPLOYMENT_ID>' \ | jq -r '.environments[] | "Name: " + .name + "\tenvironmentId: " + (.id|tostring)'
Name: <ENVIRONMENT_NAME> environmentId: <ENVIRONMENT_ID>
curl -u <USER>:<PASSWORD> \ -X GET -p '<BAMBOO_URL>/rest/api/latest/deploy/environment/<ENVIRONMENT_ID>/results' \ | jq -r '.results[] | "\nCreator: " + .deploymentVersion.creatorDisplayName + "\nBranch: " + .deploymentVersion.planBranchName + "\nDeployment State: " + .deploymentState + "\nLife Cycle State: "+ .lifeCycleState'
Creator: <USER>Branch: <BRANCH>Deployment State: <DEPLOYMENT_STATE>Life Cycle State: <LIFE_CYCLE_STATE>e.g.Creator: adminBranch: masterDeployment State: SUCCESSLife Cycle State: FINISHED
It looks like you're new here. Sign in or register to get started.