Command Line Builder - Important Messages To Email Template?


Alright, I've finally wrestled our command line builders into spitting out some useful messages on error.  Only problem thus far is that it doesn't seem to send them in our e-mail template.

I've used ##teamcity[message status='FAILURE'...] style messages to report compile errors, which get shown on the important messages, but they don't get e-mailed out.

Is there any other way to get this to show up in e-mails?


P.S.  It would be nice if I could simply specify a regex that lists something as a 'compile' error, and then it should just 'work' with the existing templates no?  Is that possible?  I'd much rather prefer that.

Comment actions Permalink

Notifier messages are composed from templates, unfortunately there is no out of the box support for error messages pattern in the template. However you can write a plugin to TeamCity server which provides such pattern. For this you will need to register your pattern processor in the TemplateMessageBuilder. Some useful links:

Example of the email template:
    <template id="build_failed_tpl">
Build results: {BUILD_RESULTS_LINK}


{COMPILATION_ERRORS} is a pattern for compilation errors. Your messages however will not be treated by server as compilation errors and currently there is no way to report compilation errors with help of service messages. I submitted a feature request for this, feel free to vote/comment:

We have plans to extend support for errors detecting, probably with help of regexps. However it may not be easy to provide such regexps for compilation errors. At least this is not easy task for javac.

Comment actions Permalink

>  feel free to vote/comment:

This url does not exist?

Comment actions Permalink


Working link is
It has not implemented yet, buut in upcomming version 7.0 we'll allow to fail a build based on specific log messages:



Please sign in to leave a comment.