TeamCity – customize email notification for specific Projects

emailnotificationsteamcity

I'm using TeamCity 5.1.5

I'd like to customize the email notification template on a per project basis.

Project A : use custom email notification email template to include additional info about the build and test results

Project B,C,D : use the default email notification template

I've perused through the TeamCity documentation and looked into the /config/_notifications/email directory and can't seem to find anything that indicates email templates can be configured on a per project basis. Any help is appreciated.

gracias!

Best Answer

As far as I know, the template files can not be configured on a per-project basis.

However, using the FreeMarker expression syntax and properties provided by TeamCity, you can update the e-mail template to conditionally provide certain information for a given project.

For example:

<#if project.name = "Project A">
    Build Results: Passable
    Test Results: Smelly
</#if>
Related Topic