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

How to run new build plan from REST api call?

Bollu Narendra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2018

Hi Team,

The REST API request I'm using was able to run failed jobs,

https://<host address>/rest/api/latest/queue/<project>-<plan>-<build key>

But what is the REST api call to run with new build key just like as we are doing in bamboo ui. 

triggerManualBuild.Action?buildKey=<project>-<plan>

How to call above action using REST API call?

Thanks & Regards,

Narendra Bollu.

1 answer

0 votes
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 8, 2018

The REST API equivalent for 'triggerManualBuild.Action?buildKey=<project>-<plan>' is:

Unfortunately that REST endpoint lacks detailed docs for the parameters, though they are all explained for the related /queue/{projectKey}-{buildKey}-{buildNumber : ([0-9]+)} endpoint right below (admittedly the specific meaning of 'projectKey' and 'buildKey' is a bit confusing, esp. in relation to similarly named Bamboo variables with a slightly different scope).

Accordingly, for a project with key TST and a plan with key NMS, you can trigger a new build with a POST to:

  • https://{{host}}/bamboo/rest/api/latest/queue/TST-NMS

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events