You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.