How to poll bamboo from external tool for bamboo results?

I have got a project working that uses REST call to trigger a bamboo build

curl --user $BAMBOO_USER:$BAMBOO_PASS -X POST -d "$STAGE_NAME&ExecuteAllStages"http://mybamboohost:8085/rest/api/latest/queue/$PROJECT_NAME-$PLAN_NAME

So as soon this is curl command is triggered, my project passes and does not wait to get results from bamboo build.

How I can poll the bamboo from an external tool to see if the bamboo build passed or failed. Is there a curl command I can use to continously poll the bamboo build?

1 answer

Bamboo Command Line Interface has queueBuild which supports a wait parameter. You could do something similar using curl and some scripting checking the build number.

Thanks Bob. Is there a way I can introduce the wait through a rest call?

I want to know whether the build passed or failed.

example - rest/api/latest/queue/$PROJECT_NAME-$PLAN_NAME?bamboo.variable.exitCode=0

Not that I know of, you need to poll on the build number and then get the build results.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

139 views 3 4
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