lplotni / burstah

http://go.cd build monitor
MIT License
10 stars 5 forks source link

Use Go.CD API to grab commit details #6

Open lplotni opened 10 years ago

lplotni commented 10 years ago

Apparently commit details of a particular build are available via an API endpoint: http://go-server/go/api/pipelines/[pipelineName]/[buildNumber].xml

birgitta410 commented 10 years ago

Just realised that this is only ever the latest commit, the one right before the run got triggered. Should probably work for burstah, but if you want more than one commit, then it still needs to be the HTML parsing.

tpbrown commented 9 years ago

Isn't the triggering commit in the cc-tray feed too? Likely easier to parse than HTML.

birgitta410 commented 9 years ago

Unfortunately, ccTray only has the name of the person who committed the change - at least in the case of the version of Go CD that I am running.

E.g.:

<Project name="name" activity="Sleeping" lastBuildStatus="Failure" lastBuildLabel="1913" lastBuildTime="2014-11-21T11:38:38" webUrl="http://54.194.156.79:8153/go/pipelines/QEN/1913/functional-test/1">
<messages>
<message text="Author Name <authorname@someserver.com>" kind="Breakers"/>
</messages>
</Project>