#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#assign codeStyle>font-family: monospace; font-family: Menlo, Bitstream Vera Sans Mono, Consolas, Courier New, Courier, monospace; font-size: 12px;#assign>
<#assign failedStyle>color: #c22731;#assign>
<#assign stacktraceStyle>color: darkred;#assign>
<#assign separatorStyle>height: 2px; padding: 0; background: #D6D6D6;#assign>
<#macro subjMarker>TeamCity#macro>
<#macro plural val><#if (val > 1 || val == 0)>s#if>#macro>
<#macro build_agent build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if !build.agentLessBuild>
Agent: ${build.agentName?html}
#if>
#macro>
<#macro build_comment build>
<#-- @ftlvariable name="build" type="jetbrains.buildServer.serverSide.SBuild" -->
<#if build.buildComment??>
Build comment: ${build.buildComment.comment?html} by ${build.buildComment.user.descriptiveName?html}.
#if>
#macro>
<#macro build_changes bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.ChangesBean" -->
<#-- @ftlvariable name="webLinks" type="jetbrains.buildServer.serverSide.WebLinks" -->
<#assign modNum=bean.modificationsNumber/>
<#if (modNum > 0)>
<#assign changesLink>
${modNum} change<@plural modNum/>#assign>
Changes included: ${changesLink}<#if bean.changesClipped>,
only ${bean.modifications?size} are shown#if>.
<#list bean.modifications as mod>
<#assign pers><#if mod.personal>(personal build)#if>#assign>
<#assign description=mod.description?html/>
<#if description?length == 0><#assign description='<no comment>'/>#if>
#list>
#if>
#macro>
<#macro compilation_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.CompilationErrorsBean" -->
<#if bean.hasErrorMessages>
Compilation errors
<#list bean.errorMessages as message>
${message?html}
#list>
<#if bean.messagesClipped>
<< Error message is clipped >>
#if>
#if>
#macro>
<#macro test_errors bean>
<#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.FailedTestsErrorsBean" -->
<#if (bean.failedTestCount > 0)>
Failed tests summary:
${bean.failedTestCount}
<#if (bean.newFailedCount > 0)>(${bean.newFailedCount} new)#if>
<#if bean.summariesClipped>, ${bean.testsForSummary?size} are shown.
See all on
build results page.
#if>
<#list bean.testsForSummary as test>
<#assign detailsLink>
<#if test_index < bean.testDetails?size>details »#if>
#assign>
<#if test.test.responsibility??>
<#assign responsibility=test.test.responsibility>
<#assign investigation>
<#if responsibility.state.active>investigated by ${responsibility.responsibleUser.descriptiveName?html}#if>
<#if responsibility.state.fixed>marked as fixed by ${responsibility.responsibleUser.descriptiveName?html}#if>
<#if responsibility.state.givenUp>given up by ${responsibility.responsibleUser.descriptiveName?html}#if>
#assign>
<#else>
<#assign investigation=''>
#if>
<#if test.newFailure>(new) #if>${test.test.name.asString?html}
|
${investigation}
|
${detailsLink}
|
#list>
<#if (bean.failedTestCount > bean.testDetails?size)>
Stacktraces (only ${bean.testDetails?size} are shown):
<#else>
Stacktraces:
#if>
<#list bean.testDetails as details>
<#if details.new>(new) #if>${details.testName?html}
<#if details.details??>
${details.details?html}
#if>
#list>
#if>
#macro>
<#macro test_list testNames>
<#-- @ftlvariable name="testNames" type="java.util.List" -->
<#list testNames as testName>
* ${testName}
#list>
#macro>
<#macro test_list_html testNames>
<#-- @ftlvariable name="testNames" type="java.util.List" -->
<#list testNames as testName>
- ${testName?html}
#list>
#macro>
<#macro build_problem_list buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List" -->
<#list buildProblems as buildProblem>
* ${buildProblem?html?replace("(\r?\n|\r)", "
", "r")?trim}
#list>
#macro>
<#macro build_problem_list_html buildProblems>
<#-- @ftlvariable name="buildProblems" type="java.util.List" -->
<#list buildProblems as buildProblem>
- ${buildProblem?html?replace("(\r?\n|\r)", "
", "r")?trim}
#list>
#macro>
<#macro footer>
<#if notificationType??>
============================================================================
Configure email notifications: ${link.editBuildTypeNotificationsLink}
<#else>
============================================================================
Configure email notifications: ${link.editNotificationsLink}
#if>
#macro>
<#macro footerHtml>
<#if notificationType??>
Configure email notifications for this build configuration
<#else>
Configure your email notifications on your settings page.
#if>
#macro>
<#macro short_build_info build><#if build.branch??>[${build.branch.displayName}] #if>#${build.buildNumber}#macro>