Ie, in the builds list in teamcity, the build status is:
"Tests passed: 19; inspections total: 14, errors: 11" <-- how can I get this string in a plugin?
I'm currently watching for the server event "buildFinished" (public void buildFinished(SRunningBuild build)) and then I try and get some status messages using
build.getStatusDescriptor().getText() or build.getBuildStatus().getText(), but neither gives me the information I want. Is there a different event I can listen on, to get a SFinishedBuild instead?
The results I'm getting when using getStatusDescriptor().getText() are pretty odd. I'm not sure what it is supposed to print, but here are some example outputs:
Ie, example output when using build.getStatusDescriptor().getText():
"Tests passed: 19; Changes" (Changes? What changes?)
Then sometimes I get the very unsatisfying
"Running" (but you just finished??)
or when a build fails, I've seen a couple of cases of:
"Process exited with code 2; Fetch source files" (Sure, it failed, but what does the source files have to do with anything? (it was a normal build failure)