how to use bamboo api to retrieve the current status of a deployment project?

I need to use bamboo API to retrieve the current status of a deployment project, it should be able to return something like:

isBuilding/isDeploying: true/false

I don't need the latest result of a deployment.

2 answers

1 accepted

This widget could not be displayed.

You can retrieve the current status of a deployment environment from the Bamboo REST API via a GET to /deploy/environment/{environmentId}/results:

The response contains related properties such as 'deploymentState', 'lifeCycleState', 'queuedDate' etc. - in particular, 'lifeCycleState' should offer what you are looking for, with values such as 'IN_PROGRESS' and 'FINISHED'.

This widget could not be displayed.

WOW!

 

That is exactly I want! Amazing! Thank you for your prompt, valuable and accurate answer, Steffen!

Glad it helps @Ian CHAN - please also 'accept' my answer as solution via the checkmark on the left side so that it doesn't show up as unanswered anymore, thereby keeping others and myself focused on and motivated to assist with new questions :)

@Ian CHAN FYI , we required some similiar functionality recently , and we ended up scripting all the REST Calls.   I posted a Gradle example at https://gist.github.com/vicsz/b04c31f27a91b0d32b55b1bf718ab705  

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

83 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you