R – Sending emails with the error log through CruiseControl

cruisecontrol.net

How do you configure cruiseControl to send out emails that contains the error log whenever a build fails? I've gotten it to send out emails to users when the build fails, but it does not include the actual error that caused the build to fail. I know that if I only configure it to send out emails to the users that have made modifications, the error log is included in those emails. This is a sample of what I have:

< publishers>
    < rss/>
    < xmllogger/>
    < email from="abc@abc.com" mailhost="abc.abc.com" includeDetails="TRUE">
    
< users>
        
< user name="Joe" group="devs" address="joe@abc.com"/>
        
< user name="Jim" group="devs" address="jim@abc.com"/>
    
< /users>
    
< groups>
        
< group name="devs" notification="Failed"/>
    
< /groups>
    
< /email>
< /publishers>

Best Answer

You can check if \cruisecontrol.net\server\xsl\compile.xsl is the same as \cruisecontrol.net\webdashboard\xsl\compile.xsl.

Compile.xsl is the default file used to print the error messages from your error log. The one in \webdashboard\ is used for the web dashboard (as the name implies) and the one under \server\ is used for emails.

You can also check ccnet.exe.config whether or not \cruisecontrol.net\server\xsl\compile.xsl is used for emails.

Mine's for example points to compile.xsl on \server:

<!-- Specifies the stylesheets that are used to transform the build results when using the EmailPublisher -->
<xslFiles>
    <file name="xsl\header.xsl" />
    <file name="xsl\compile.xsl" />
    <file name="xsl\unittests.xsl" />
    <file name="xsl\fit.xsl" />
    <file name="xsl\modifications.xsl" />
    <file name="xsl\fxcop-summary.xsl" />
</xslFiles>
Related Topic