Re: Customizing e-mail templates

I also cannot get my email templates to take. So far , my notes/questions.

Q.Why are there both .ftl and .ftl.dist files for each template?

they appear to be dups but not backups?

Q.I have two SVN repositories, one mostly for testing.

(This only happened today.) How could it be that builds from the two would confuse each other and the message?

Hmm, I wonder if there is a system corruption issue. I ran 2 builds on my test repo.

The first, where build_successful.ftl would predict the ${project.name}, it got the wrong root.

The 2nd, after letting two users get the email (me and me#2), confused the revision;

instead of #${build.buildNumber} which should be 61.22, one of them got only 61.2, ie truncated.

Q.How can I add the URL for our jira for the issues? Right now they are not hotlinks.

Q.If I cannot get the properties, then I'm not sure how to make the tail of the log appear on a failing build.

Q.How can I get a private build to send email?

Q.How can I edit text in the body?

I tried simply adding static text, eg

build_successful.ftl now includes extra words, ie "The Teamcity Build for  " and quotes around the build name;

<#global body>The Teamcity Build for  "${project.name}::${buildType.name} #${build.buildNumber}" was Successful: ${var.buildShortStatusDescription}.
It ran on Agent: ${agentName}
To view Build results, click: ${link.buildResultsLink}

${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>

This fails, the output is the same as before the change;

Build Sd.0.Trunk::PomTesting #60.1 successful
Agent: LICIB02

Changes included (1 change).
Change 60 by licib02 (1 file): PM-4656 CIB Email formats. Test01 Body formatting.

However, when I tried changing the subject line, that did work;

6 comments
Comment actions Permalink

oops, it says this one is answered. Please edit if we should move to a new thread.

//You did it, thank you!

The old one had 140 views, so maybe several people have this question.

0
Comment actions Permalink

This is several questions as you can see. I am particularly interested in fixing so as to get the tail of the build log in the email if it is a failing build.

0
Comment actions Permalink

Yegor (continuing private email) I had originally posted this here;

http://devnet.jetbrains.net/thread/293793

as described at the top of this thread, but you and I both thought it should be a separate post.

I'll make a note there as well.

0
Comment actions Permalink

> Q.Why are there both .ftl and .ftl.dist files for each template?

Please see .dist occurrence at the doc section.

> Q.I have two SVN repositories, one mostly for testing. How could it be that builds from the two would confuse each other and the message?

Please ensure you do not have several TeamCIty servers running and sending email notificaitons to you.

If you belienve there is a bug in TeamCity, please file an issue into our issue tracker with all the relevant details: attach both messages, screenshots from the server proving they are wrong, teamcity-server.log and teamcity-notifications.log server log files.

> Q.How can I add the URL for our jira for the issues? Right now they are not hotlinks.

Did you try our doc: http://confluence.jetbrains.net/display/TCD65/JIRA ?

> Q.If I cannot get the properties, then I'm not sure how to make the tail of the log appear on a failing build.

Not sure what properties do you mean here. Did you discover Tail presentation on a Build Log tab for a build?

> Q.How can I get a private build to send email?

Not sure I understand your question. User's notification rule "Builds with my changes" should cover personal builds.

> Q.How can I edit text in the body? ... This fails, the output is the same as before the change;
The template has two sections: for plain text and HTML text message parts. Please check you modify both of them.

0
Comment actions Permalink

>> Q.How can I add the URL for our jira for the issues? Right now they are not hotlinks.

>Did you try our doc: http://confluence.jetbrains.net/display/TCD65/JIRA ?

Yes, I already have the webpages themselves hotlinking to my Jira issue tracker.

Here is a picture of part of an email. See how the cited change jira item, listed in the commit comment, is not hotlinked.



Attachment(s):
120117.PM-4656.EmailPicIssueIdnotClickable.jpg
0
Comment actions Permalink

I would still like to be able to hotlink to my Jira ticket server in my email. Should I make a ticket for this?

0

Please sign in to leave a comment.