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
Hi Bhavesh,
You could do the following:
<!-- the following will show all builds --> http://<HOST>/rest/api/latest/result/<PROJECT>-<PLAN>.xml e.g.: http://<HOST>/rest/api/latest/result/MP-HP.xml <!-- the following will show a particular build --> http://<HOST>/rest/api/latest/result/<PROJECT>-<PLAN>-<ID>.xml e.g.: http://<HOST>/rest/api/latest/result/MP-HP-1.xml e.g.: http://<HOST>/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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.