Attach log file by email notification

Team City- I have tried to attach log file in Team City by email notification.I am facing difficulties in this.

I tried placing the e-mail templates in the home directory of Team City($HOME\config_notifications\email).

I have also tried placing the templates in the project itself.

A part of the Sample Template:


<events>
   <event type='build_started'>
     <ref template='build_started_tpl'/>
   </event>
</events>
<templates>
   <template id='build_started_tpl'>
<subject>Build {PROJECT_NAME}::{BUILD_CONFIG_NAME} {BUILD_NUMBER} started.</subject>
<body>Build {PROJECT_NAME}::{BUILD_CONFIG_NAME} {BUILD_NUMBER} started.
Build results: {BUILD_RESULTS_LINK}
</body>
</template>


Both ways are not working.Can somebody help me with this.

Being a fresher,can someone explain me in detail.

Thanks in advance.

Please sign in to leave a comment.