Email notifications with log

Hello,

Is it possible that TeamCity sends email with build log? Not only build status.

Thanks!

1 comment
Comment actions Permalink

Hi,

Yes, it is possible using FreeMarker templates, which are stored in <TeamCity data directory>/config/_notifications/ folder. Here is an example how to post build log into email

<#list build.buildLog.messages[1..] as message><#-- skipping the first message (it is a root node)-->
      ${message.text}
</#list>

For more details please see comments for this issue TW-8621.
Also we have a feature request to support attachments to emails TW-7318, please vote.

0

Please sign in to leave a comment.