How to change email notification markup?

Hello,
is there any way to change standard template of email notification? I didn't found examples in your documentation.
I've tried to change C:\Users\[User]\.BuildServer\config\email-config.xml file, with the following markup:

  <template id="build_successful_tpl">
        <subject>Build {PROJECT_NAME}::{BUILD_CONFIG_NAME} {BUILD_NUMBER} successful {SHORT_STATUS_DESCRIPTION}</subject>
        <body>
            <h2>{PROJECT_NAME}</h2><br/>
            <div >Build Number: {BUILD_NUMBER} successful</div><br/>
            <p>{SHORT_STATUS_DESCRIPTION}</p><br/><hr/>
            <h3>Changes:</h3>
            {CHANGES}
            <h3 >COMPILATION ERRORS:</h3><br/>
            {COMPILATION_ERRORS}
            <br/><hr/>
            <h3 >FAILED TESTS ERRORS:</h3><br/>
            {FAILED_TESTS_ERRORS}
        </body>
    </template>

but after I've done it, I started to get notifications with empty body. What am I doing wrong?

Eugene

1 comment
Comment actions Permalink

First of all your HTML tags need to be escaped properly, i.e. < should be replaced with &lt;, otherwise this template will not be considered valid. Secondly HTML emails are not currently supported (it is not enough to just add HTML markup, proper content type should be set too), please watch/vote for this issue: http://jetbrains.net/tracker/issue/TW-1443

0

Please sign in to leave a comment.