Teamcity EMail Notification

Answered

Hi,
i try to put an env.varaible in an Email Template ( build_successful.ftl ) by donig this

<br>
just the Filename : ${env.Filename}
<br>

But i get an Error in the Email
[TEAMCITY TEMPLATE ERROR]

Could someone help ?

4 comments
Comment actions Permalink

Hello,

Please use the following syntax:
FileName:  ${build.parametersProvider.all['env.Filename']}

Also please see how to list all build parameters.

0
Comment actions Permalink

It Works ... Great thanks

0
Comment actions Permalink

I tried add ${build.branch.name}  to email notifier and I got a same error as is above.

Please, could you advise me what I doing wrong and how I can include branch name in email?

Thanks in advance.

0
Comment actions Permalink

Hello Vladimir,

Please use the following command: ${build.parametersProvider.all['build.branch.name']}.

0

Please sign in to leave a comment.