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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
does it work if you run it from Bamboo UI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.