Bamboo Cloud queue build via REST API

Hi Team,

I'm currently looking to integrate a Bamboo cloud API, specifically to queue a new build from an external application.

I've gotten authentication working and even receiving the expected response (200 OK with empty body) from:

URL: `/builds/rest/api/latest/queue/{Project}-{Plan}?os_authType=basic`
Method: `POST`


But the build never queues and no errors.

I wrote tests following the REST API documentation and wanted to know if the documentation is valid for Cloud hosts as well as on premises hosted Bamboo servers?

Any assistance would be appreciated.

3 answers

1 accepted

This widget could not be displayed.

In case helps others. The following cURL example works, I was constructing the request incorrectly.

curl -D- -u 'username:password' -H "Content-Type: application/json" -X POST "https://{MyCloudName}.atlassian.net/builds/rest/api/latest/queue/MYPROJ-MYPLAN?executeAllStages=true"

As first commenter pointed out correctly, response is build queue info in "Accecpt" type format, not 200 OK empty response as the overview docs suggest. 

This widget could not be displayed.

What is your headers? Try to use

Content-Type: application/json
Accepts: application/json

In 200 response you should receive JSON object with started build details

This widget could not be displayed.

Thanks for the comment. Both `Content-Type` and `Accepts` headers are set to `application/json`. 

It is responding correctly with an empty body as per REST api for POST to build queue documentation. https://developer.atlassian.com/bamboodev/rest-apis/bamboo-rest-resources?continue=https%3A%2F%2Fdeveloper.atlassian.com%2Fbamboodev%2Frest-apis%2Fbamboo-rest-resources&application=dac#BambooRESTResources-BuildQueueService

Can you confirm this functionality does work for Cloud hosted Bamboo as well as on premises Bamboo?

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