How to get XML of latest build

Bhavesh Pandey April 23, 2014

Hi, I am new to Atlassian. I have to get the XML of latest bamboo build, which have information about successful builds, failed builds, etc

I get latest build by this link

https://<host>/browse/<KEY-PLAN>/latest

where <host> is my host name and <KEY-PLAN> is my team's Key and plan on which we are working.

but I need a link which downloads a XML having information about all the previous builds. Does bamboo maintain such database ?? Thanks

1 answer

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2014

Hi Bhavesh,

You could do the following:

&lt;!-- the following will show all builds --&gt;
http://&lt;HOST&gt;/rest/api/latest/result/&lt;PROJECT&gt;-&lt;PLAN&gt;.xml
e.g.: http://&lt;HOST&gt;/rest/api/latest/result/MP-HP.xml

&lt;!-- the following will show a particular build --&gt;
http://&lt;HOST&gt;/rest/api/latest/result/&lt;PROJECT&gt;-&lt;PLAN&gt;-&lt;ID&gt;.xml
e.g.: http://&lt;HOST&gt;/rest/api/latest/result/MP-HP-1.xml
e.g.: http://&lt;HOST&gt;/rest/api/latest/result/MP-HP-2.xml

You are able to request JSON to the above decribed by changing the extension from .xml to .json

Kind regards,
Rafael

Suggest an answer

Log in or Sign up to answer