I have a parameterized build that takes the name of the tag number to build off of as a plan parameter. Now, I'd like to trigger this build through an SVN hook or other script, but the tag number will be different in each case.
I found the updateAndBuild documentation http://confluence.atlassian.com/display/BAMBOO/Build+Services, but it doesn't mention support for passing plan parameters through each call.
One other way I can think of is to call the ajax hook. I haven't tried this one yet, although it doesn't sound like the "right" thing for a utility script to invoke.
How can I achieve this?
Added:
As noted in the answer below, this should be done with a POST to the /queue resource:
<tt>POST</tt> — Adds a build to the build queue (e.g. <tt>/queue/</tt>MYPROJ1-MYPLAN1). No POST data required. Response will be empty.
This seems to be an undocumented feature, but any POST parameters passed along will be used to set / override the build parameters.
Community moderators have prevented the ability to post new answers.
You should use a startBuild() REST call, see API documentation.
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.
I think this stopped working at some point, or I'm forgetting something. Could you please take a look at https://answers.atlassian.com/questions/17303 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(Too long for a comment, so posting as answer)
Thanks for the response!
I'm trying to figure out what URL and verb this maps to. Is it a POST to /queue?
<tt>POST</tt> — Adds a build to the build queue (e.g. <tt>/queue/</tt>MYPROJ1-MYPLAN1). No POST data required. Response will be empty.
If that's the case then how should I pass along the build parameters? Just in the POST body?
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.