Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 巡航控制系统总是发送电子邮件_.net_Testing_Continuous Integration_Cruisecontrol.net_Cruisecontrol - Fatal编程技术网

.net 巡航控制系统总是发送电子邮件

.net 巡航控制系统总是发送电子邮件,.net,testing,continuous-integration,cruisecontrol.net,cruisecontrol,.net,Testing,Continuous Integration,Cruisecontrol.net,Cruisecontrol,我正在尝试设置CruiseControl.NET,以便在构建失败或修复时通知开发人员,但每次构建后它都会发送电子邮件 这是当前ccnet.config的“我的发布者”部分 <publishers> <email mailhost="smtp.gmail.com" from="***@gmail.com" includeDetails="true" mailhostPassword="###" mailhostUsername="***" mailport="587" use

我正在尝试设置CruiseControl.NET,以便在构建失败或修复时通知开发人员,但每次构建后它都会发送电子邮件

这是当前ccnet.config的“我的发布者”部分

<publishers>
  <email mailhost="smtp.gmail.com" from="***@gmail.com" includeDetails="true" mailhostPassword="###" mailhostUsername="***" mailport="587" useSSL="TRUE">
    <users>
      <user name="Developer" group="developers" address="%%%@hotmail.com" />
    </users>
    <groups>
      <group name="developers">
        <notifications>
          <NotificationType>change</NotificationType>
        </notifications>
      </group>
    </groups>
  </email>
</publishers>

改变
我正在使用CruiseControl.NET1.6

谢谢

godwin

好吧,事实证明这是因为我以用户身份收到了电子邮件,但我是“修改人”,所以CC.NET没有向我发送电子邮件,因为我是开发人员组的成员,而是因为我是修改人

我通过向发布者添加“ModifierNotificationTypes”部分解决了这个问题:

<publishers>
  <email mailhost="smtp.gmail.com" from="***@gmail.com" includeDetails="true" mailhostPassword="###" mailhostUsername="***" mailport="587" useSSL="TRUE">
    <users>
      <user name="Godwin" group="developers" address="%%%@hotmail.com" />
    </users>
    <groups>
      <group name="developers">
        <notifications>
          <notificationType>Failed</notificationType>
          <notificationType>Fixed</notificationType>
        </notifications>
      </group>
    </groups>
    <modifierNotificationTypes>
      <NotificationType>Failed</NotificationType>
      <NotificationType>Fixed</NotificationType>
    </modifierNotificationTypes>
  </email>
</publishers>

失败
固定的
失败
固定的

好的,事实证明这是因为我以用户身份收到了电子邮件,但我是“修改人”,所以CC.NET没有向我发送电子邮件,因为我是开发人员组的成员,而是因为我是修改人

我通过向发布者添加“ModifierNotificationTypes”部分解决了这个问题:

<publishers>
  <email mailhost="smtp.gmail.com" from="***@gmail.com" includeDetails="true" mailhostPassword="###" mailhostUsername="***" mailport="587" useSSL="TRUE">
    <users>
      <user name="Godwin" group="developers" address="%%%@hotmail.com" />
    </users>
    <groups>
      <group name="developers">
        <notifications>
          <notificationType>Failed</notificationType>
          <notificationType>Fixed</notificationType>
        </notifications>
      </group>
    </groups>
    <modifierNotificationTypes>
      <NotificationType>Failed</NotificationType>
      <NotificationType>Fixed</NotificationType>
    </modifierNotificationTypes>
  </email>
</publishers>

失败
固定的
失败
固定的