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

how to start bamboo plan from URL?

Roberto De Oliveira December 30, 2016

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
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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

Roberto De Oliveira December 31, 2016

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

0 votes
Roberto De Oliveira December 30, 2016

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.

0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 30, 2016

does it work if you run it from Bamboo UI?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events