我想将 ccnet 设置为:
- 每次构建后向提交者发送邮件(无论状态如何)
- 当构建中断或修复时,向所有其他开发人员发送邮件
随着 CCNet 的每个新版本,电子邮件发布者都会被重构(并且据说有所改进),但我仍然遇到同样的问题:只有提交者会收到通知 - 如果构建失败,其他开发人员不会收到电子邮件。所以要么我没有得到这个系统,要么电子邮件发布者中有一个长期未修复的错误。
我使用的是 v1.4.4.83。我的示例配置(我删除了不相关的内容):
<email
includeDetails="true">
<users>
<user name="user1" address="[email protected]" group="developers" />
<user name="user2" address="[email protected]" group="developers" />
</users>
<groups>
<group name="developers">
<notifications>
<notificationType>Failed</notificationType>
<notificationType>Fixed</notificationType>
</notifications>
</group>
</groups>
<modifierNotificationTypes>
<NotificationType>Always</NotificationType>
</modifierNotificationTypes>
</email>
我相信这符合您的要求(诚然,在您提出问题一年后)。
注意:我们使用 SVN,带有<svn>
堵塞。在 CC.NET 1.4.xx 中,<email>
块支持正则表达式来根据 SVN 用户名计算出电子邮件地址。它应该与其他源代码控制块一起使用,但我除了 SVN 之外没有使用过任何东西。
我们的文件中有类似以下内容的内容<publishers>
块(我已修改它以符合您的规格):
<email ... includeDetails="true">
<!-- Developers get an email whenever the build status changes -->
<users>
<user name="Dev1" group="developer" address="[email protected]" />
<user name="Dev2" group="developer" address="[email protected]" />
</users>
<groups>
<group name="developer" notification="change" />
</groups>
<!-- Committers get an email for every build they commit code for -->
<converters>
<regexConverter find="$" replace="@ourcompany.com" />
</converters>
<modifierNotificationTypes>
<NotificationType>always</NotificationType>
</modifierNotificationTypes>
</email>
So, [电子邮件受保护] and [电子邮件受保护]每当构建状态发生变化时,[svnuser]@ourcompany.com 都会收到一封电子邮件,当他们提交代码的构建完成构建时,[svnuser]@ourcompany.com 也会收到一封电子邮件。
注意:如果构建失败,自上次成功以来已提交代码的 svn 用户将在每次构建完成时继续收到更多电子邮件,直到构建修复为止。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)