Create warning statistics from teamcity build log

Hello

We would like to create a statistic for the number of warnings in a build configuration.

Therefore I was wondering how to do this. Is it possible to somehow search the build log as part of a build configuration. We currently invoke devenv.com (visual studio) via the command line in a command line build step. The output is seen in the team city build log. But how to detect the number of warnings to add to the build statistic.

I know how to create a graph, and a data to it via '##teamcity[...' but cannot figure out how to get the number to add. I could of course change the build step to output to a file and then search that, but this makes it quite difficult to follow the build output via team city.

Any help is much appreciated.

Kind regards
Kim

Please sign in to leave a comment.