目前,我的 CruiseControl.NET 电子邮件发布者将其用户列表硬编码在构建配置文件中
<publishers>
[ ... ]
<email from="autobuild@domain.com" mailhost="stmp.domain.com" mailport="25" includeDetails="TRUE">
<replyto>buildserver@domain.com</replyto>
<users>
<user name="a.user" group="buildmaster" address="a.user@domain.com"/>
<user name="b.user" group="developers" address="b.user@domain.com"/>
</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>
我希望能够从外部文件中读取用户列表。我们有几十个构建文件,我想简化添加新用户和删除不再感兴趣的用户的过程。
我可以这样做吗?