Open lplotni opened 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.
Isn't the triggering commit in the cc-tray feed too? Likely easier to parse than HTML.
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>
Apparently commit details of a particular build are available via an API endpoint: http://go-server/go/api/pipelines/[pipelineName]/[buildNumber].xml