【问题标题】:CruiseControl.NET : Sending email using SVN username to ActiveDirectory mappingCruiseControl.NET:使用 SVN 用户名发送电子邮件到 ActiveDirectory 映射
【发布时间】:2010-12-10 14:32:02
【问题描述】:

是否可以将 CruiseControl.NET 配置为向对损坏的构建进行修改的用户发送电子邮件通过将他们的 SVN 用户名映射到相应的 Active-Directory 别名(因此检索正确、更新的电子邮件地址)。

我们的 SVN 服务器设置为允许某个 Active-Directory 组的用户读取和提交更改:我不想每次将用户添加到我们的 Programmers 组时都必须维护 CruiseControl.NET 配置在 Active-Directory 中。

非常感谢!

【问题讨论】:

    标签: active-directory cruisecontrol.net ccnet-config


    【解决方案1】:

    您是在问如何确定最新提交者的电子邮件地址?假设您的用户的颠覆用户名与其(非域限定)AD 用户名相同,这非常简单。由于您正在使用 AD 对 svn 进行身份验证,因此我猜您已经有了。

    要通过电子邮件发送提交者以响应 cc.net 事件,请使用“modifierNotificationTypes”配置块(在“email”块中)定义何时应通过电子邮件发送,并使用“converters”块告诉 cc.net 如何将 svn 用户名转换为电子邮件地址。这应该就像添加“@yourcompany.com”一样简单,这可以通过“regexConverter”来完成。这是一个向提交者发送失败构建和第一个修复构建的示例:

    <email from="build@yourcompany.com"
           mailhost="yourmailserver"
           includeDetails="TRUE">
      <users />
      <groups />
      <modifierNotificationTypes>
        <NotificationType>Failed</NotificationType>
        <NotificationType>Fixed</NotificationType>
      </modifierNotificationTypes>
      <converters>
        <regexConverter find="$"
                        replace="@yourcompany.com" />
      </converters>
    </email>
    

    查看cc.net documentation on the email publisher,了解有关如何配置电子邮件块的更多详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-18
      • 2011-10-14
      • 2012-10-11
      • 1970-01-01
      • 1970-01-01
      • 2020-10-05
      • 2018-05-09
      • 2017-09-19
      相关资源
      最近更新 更多