tcWebHooks icon indicating copy to clipboard operation
tcWebHooks copied to clipboard

Add more items to Payload

Open netwolfuk opened this issue 8 years ago • 3 comments

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.

netwolfuk avatar Apr 06 '16 11:04 netwolfuk

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

netwolfuk avatar Apr 06 '16 12:04 netwolfuk

Sure, thanks netwolfuk!

thomasjoseph99 avatar Apr 07 '16 06:04 thomasjoseph99

This is available for testing in the v1.2.0-alpha.3 release.

netwolfuk avatar Sep 19 '19 10:09 netwolfuk