Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 vote
rsperafico Atlassian Team Dec 30, 2016

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 Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

595 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you