tcWebHooks
tcWebHooks copied to clipboard
Add more items to Payload
Is it possible for tcwebhooks to report (post) more details than the standard build related information. I’m looking for a way to get couple more information like start time, end time, number of test cases, pass count, fail count etc. These informations are available if we hit the rest url (https://teamcity-server.com/app/rest/builds/id:12345) provided by teamcity for a given build run.
Yes, it should be possible. There are probably some of your list above that are more difficult than others, but if they are in the REST api, I can at least look at that source.
There is a branch of 1.1 that uses velocity templates, which mean that it might even be possible to provide access to the sBuild or SFinishedBuild objects in the template, thus allowing stuff like: sFinishedBuild.getCompilationErrorMessages(), sFinishedBuild.getTestMessages() directly in the template, rather than having to provide it all wrapped in the Payload bean.
I won't plan to add it to the 0.9 build, but will put it on the roadmap for 1.2
Sure, thanks netwolfuk!
This is available for testing in the v1.2.0-alpha.3 release.