【发布时间】:2015-03-17 12:07:46
【问题描述】:
我正在尝试配置我们的构建过程,以便构建异常只会通过电子邮件发送给构建管理器。
我一定是做错了什么,因为即使我已经很好地定义了组并且每个人都收到了异常电子邮件。
下面是显示我当前结构的代码段。这个 emailconfig.xml 文件被导入到我的项目中。在我的理解应该如何使用 notificationType 时,我有什么遗漏吗?谢谢。
<cb:config-template xmlns:cb="urn:ccnet.config.builder">
<email from="$(MAIL_FROM)" mailhost="$(MAIL_HOST)" mailport="25" includeDetails="TRUE">
<users>
<user name="DevTeam" group="developers" address="ACDev@companyname.com"/>
<user name="QA-OnPrem" group="QA" address="QA-OnPrem@companyname.com"/>
<user name="BuildManagers" group="buildmaster" address="ACBuilds@companyname.com"/>
<user name="Some Name" group="BA" address="sname@companyname.com"/>
</users>
<groups>
<group name="buildmaster">
<notifications>
<notificationType>Always</notificationType>
</notifications>
</group>
<group name="developers">
<notifications>
<notificationType>Failed</notificationType>
<NotificationType>Success</NotificationType>
<NotificationType>Change</NotificationType>
</notifications>
</group>
<group name="QA">
<notifications>
<notificationType>Failed</notificationType>
<NotificationType>Success</NotificationType>
<NotificationType>Change</NotificationType>
<NotificationType>Fixed</NotificationType>
</notifications>
</group>
<group name="BA">
<notifications>
<notificationType>Change</notificationType>
<notificationType>Fixed</notificationType>
</notifications>
</group>
<group name="PHITeam">
<notifications>
<notificationType>Failed</notificationType>
<NotificationType>Success</NotificationType>
<NotificationType>Change</NotificationType>
<NotificationType>Fixed</NotificationType>
</notifications>
</group>
</groups>
<modifierNotificationTypes>
<NotificationType>Failed</NotificationType>
<NotificationType>Fixed</NotificationType>
<NotificationType>Success</NotificationType>
<NotificationType>Change</NotificationType>
<NotificationType>Exception</NotificationType>
</modifierNotificationTypes>
<xslFiles>
<file>xsl\header.xsl</file>
<file>xsl\compile.xsl</file>
<file>xsl\modifications.xsl</file>
</xslFiles>
</email>
</cb:config-template>
【问题讨论】:
标签: email configuration cruisecontrol.net