views:

1239

answers:

2

I am trying to configure my CruiseControl.NET server to send emails to those the contribute to the source; however, I cannot seem to configure the email publisher properly. I am receiving the following error from CruiseControl.NET.

Exception: Unused node detected: <subjectSettings><subject buildResult="Success" value="Build Successful! Have a cookie!"/></subjectSettings>

This is my configuration. The real email addresses have been altered to protect the innocent.

<publishers>
    <xmllogger />

    <email from="[email protected]" mailhost="email.companyx.com" includeDetails="true" >
        <users>
            <user name="[email protected]" group="buildMasters" address="[email protected]"/>
            <user name="[email protected]" group="buildMasters" address="[email protected]"/>
            <user name="[email protected]" group="developers" address="[email protected]"/>
            <user name="[email protected]" group="developers" address="[email protected]"/>
            <user name="[email protected]" group="developers" address="[email protected]"/>
        </users>
        <groups>
            <group name="buildMasters" notification="always"/>
            <group name="developers" notification="change"/>
        </groups>
        <modifierNotificationTypes>
            <NotificationType>Failed</NotificationType>
            <NotificationType>Fixed</NotificationType>
            <NotificationType>Success</NotificationType>
        </modifierNotificationTypes>
        <subjectSettings>
                <subject buildResult="Success" value="Build Successful! Have a cookie!" />
        </subjectSettings>
    </email>

</publishers>

How can I properly configure the email publisher to avoid this error?

+2  A: 

Are you building CruiseControl from scratch? because it looks like that functionality was only checked in a few weeks ago, and if you are using one of the releases that functionality isn't in there.

Alex
I am using precompiled binaries (v. 1.4.2). I thought this might have been the case. The online documentation was not very clear on which version it applied to; however, the installed documentation does not describe this functionality so it must be absent in the version I have. Thanks.
Ryan Taylor
+3  A: 

I came upon this question running version 1.4.4 and receiving publisher errors similar to this:

unused node detected notification="always"

I was using the Email Publisher documentation and couldn't figure out the problem. Turns out there's an error in the documentation; under the groups block notification has been changed to notifications. The groups block should now read:

<groups>
    <group name="buildMasters" notifications="always"/>
    <group name="developers" notifications="change"/>
</groups>
Gavin Miller