Service Messages displaying errors on failure

I'm using TeamCity services message to output important messages (errors and warnings) during my build. The success/failure of the build is controlled solely by the exit code of my custom build runner executable (returns a non-zero exit code for a failure). I'm noticing that on failure, only warnings are displayed and not errors. I would expect the opposite to be true (display errors and not warnings). Consider the given service messages and an exit-code of 1 (failure):

##teamcity[message text='Here is a message.' status='NORMAL']
##teamcity[message text='Here is a warning.' status='WARNING']
##teamcity[message text='Here is an error!' status='ERROR']

Produces this:

Notice the error is not displayed but warning is. Any suggestions to get errors to show up here?

1
3 comments

What version of TeamCity do you use?

0

Our server we use to testing is using TeamCity 10.0.1 (build 42078).

0

I'd try to run the same test in 2017.2 or 2017.1.x. There is a chance the problem is not actual anymore. If it's not the case, please create a bug report in our tracker.

0

Please sign in to leave a comment.