We send out emails for any build status. If the build fails I want to either:
- send an additional email with an attachment
- conditionally attach an file to the email
Either one works for me, but the second option is better I think.
How can I do that in the CC.NET config file?
Can I have two sections - one with and another with
Perhaps is what I want, but I can't find an example of that.
Right now the config file looks like:
<publishers>
<buildpublisher>
<sourceDir>...</sourceDir>
<publishDir>...</publishDir>
</buildpublisher>
<buildpublisher>
<sourceDir>...</sourceDir>
<publishDir>...</publishDir>
</buildpublisher>
<xmllogger />
<email from="..." mailhost="..." mailhost Username="..." includeDetails="True">
<users>
<user name="..." group="..." address="..."/>
</users>
<groups>
<group name="buildstatus" notification="Always" />
</groups>
<xslFiles>
<file>xsl\header.xsl</file>
<file>xsl\modifications.xsl</file>
</xslFiles>
</email>
I am guessing I should add
<onfailure>
<attachments>
<file>...</file>
</attachments>
</onfailure>
I'm looking for a definitive example of some configuration that shows a publisher sending an email with an attachment for a filed build.