how to start bamboo plan from URL?

Hello everybody!

Sometime ago I had a bamboo server and I used to start bamboo plans from web browser bookmarks (example: https://mybamboo.domain.com/build/admin/ajax/startPlan.action?planKey=XAC-DDDC), this was a very useful feature. But on a recent installation it doesn't work, every time I try it I get the following message:

"{"status":"ERROR","errors":["Error encountered while triggering manual build: Could not generate next build number for 'XAC-DDDC'","Plan 'XAC-DDDC' did not start"]}.

Do I have to configure something?

Running Bamboo: 5.13.0.1 build 51314

3 answers

1 votes

Hello Roberto,

Please, do not bookmark actions as they may not work as you have noticed. Some actions require parameters to be passed along with the request and when you bookmark them those parameters will go missing.

Instead, I would suggestion you on using any of the following URLs:

http://localhost:8085/api/rest/updateAndBuild.action?buildKey=PROJ-PLAN
 
# Requirements
- Repository configured for the PROJ-PLAN (Plan configuration >> Repositories)
- Remote Trigger (Plan configuration >> Triggers)
 
# Behaviour
- Bamboo will check whether there are changes in the repository setup, checking for changes against all branches within PROJ-PLAN (i.e PROJ-PLAN0, PROJ-PLAN1...) If changes are found in any of the branches, Bamboo will trigger a build against the branch as well
 
# Notes
- Cannot be used with IPv6

information The method above will increase load in Bamboo whereas the method below will be triggering a specific build.

# https://docs.atlassian.com/bamboo/REST/5.14.3.1/#d2e578
curl -u USERNAME -X POST 'http://localhost:8085/rest/api/latest/queue/PROJ-PLAN'
 
# Behaviour
- Bamboo will trigger the build specified in the URL only. If you want to trigger a particular branch, you can update the url to 'http://localhost:8085/rest/api/latest/queue/PROJ-PLAN123' where 123 is the referred branch in your Plan.

I would like to wish you a Happy New Year!

Kind regards,

Rafael
Atlassian

Thank you so much Rafael and have a happy new year!

0 votes

does it work if you run it from Bamboo UI?

Yes, it works fine if I use web UI inside the same window, but if I use URL, or something that opens a new window or tab it doesn't work.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,070 views 0 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot