1

我正在尝试将我的 CruiseControl.NET 服务器配置为向源代码贡献者发送电子邮件;但是,我似乎无法正确配置电子邮件发布者。我从 CruiseControl.NET 收到以下错误。

异常:检测到未使用的节点:<subjectSettings><subject buildResult="Success" value="构建成功!有一个cookie!"/></subjectSettings>

这是我的配置。真实的电子邮件地址已被更改以保护无辜者。

<publishers>
    <xmllogger />

    <email from="abs@companyx.com" mailhost="email.companyx.com" includeDetails="true" >
        <users>
            <user name="john@companyx.com" group="buildMasters" address="john@companyx.com"/>
            <user name="jane@companyx.com" group="buildMasters" address="jane@companyx.com"/>
            <user name="joe@companyx.com" group="developers" address="joe@companyx.com"/>
            <user name="jill@companyx.com" group="developers" address="jill@companyx.com"/>
            <user name="jerry@companyx.com" group="developers" address="jerry@companyx.com"/>
        </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>

如何正确配置电子邮件发布者以避免此错误?

4

2 回答 2

11

我在运行 1.4.4 版时遇到了这个问题,并收到与此类似的发布者错误:

未使用节点检测到通知 =“总是”

我正在使用Email Publisher文档,但无法找出问题所在。原来文档中有错误;在组块下notification已更改为notifications. 组块现在应为:

<groups>
    <group name="buildMasters" notifications="always"/>
    <group name="developers" notifications="change"/>
</groups>
于 2010-02-19T21:59:11.897 回答
2

您是从头开始构建 CruiseControl 吗?因为看起来该功能仅在几周前才被检查,如果您使用的是其中一个版本,则该功能不存在。

于 2009-01-20T18:46:46.740 回答