Populate CruiseControl email publisher user addresses from file

Posted by Unsliced on Stack Overflow See other posts from Stack Overflow or by Unsliced
Published on 2012-09-07T15:05:23Z Indexed on 2012/09/09 9:38 UTC
Read the original article Hit count: 271

Currently my CruiseControl.NET email publisher has its list of users hard-coded in the build config file

<publishers>
    [ ... ]
    <email from="[email protected]" mailhost="stmp.domain.com" mailport="25" includeDetails="TRUE">
        <replyto>[email protected]</replyto>
        <users>
            <user name="a.user" group="buildmaster" address="[email protected]"/>
            <user name="b.user" group="developers" address="[email protected]"/>
        </users>
        <groups>
            <group name="developers">
                <notifications>
                    <notificationType>Failed</notificationType>
                    <notificationType>Fixed</notificationType>
                </notifications>
            </group>
            <group name="buildmaster">
                <notifications>
                    <notificationType>Always</notificationType>
                </notifications>
            </group>
        </groups>
        <modifierNotificationTypes>
            <NotificationType>Failed</NotificationType>
            <NotificationType>Fixed</NotificationType>
        </modifierNotificationTypes>
    </email>
</publishers>

I'd like to be able to read the list of users from an external file. We have dozens of build files and I'd like to streamline the process of adding new users and removing ones that are no longer interested.

Can I do this?

© Stack Overflow or respective owner

Related posts about email

Related posts about cruisecontrol.net