在 Teamcity 中破坏构建的电子邮件用户 [英] Email user that broke build in Teamcity

查看:17
本文介绍了在 Teamcity 中破坏构建的电子邮件用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Husdon/Jenkins 中,我可以设置在构建被破坏时的通知,以通过电子邮件发送给签入破坏构建的用户.我如何在 Teamcity 中执行此操作?

In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity?

我知道个人用户可以通过 Teamcity 界面为自己设置电子邮件通知(当构建被破坏时),但我只希望将电子邮件发送给破坏构建的用户,我也不想要这个要求每个用户都必须更新他们的 Teamcity 设置.

I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when the build is broken), but I ONLY want emails sent to the users that broke the build, also I don't want the requirement that every individual user have to update their Teamcity settings.

推荐答案

  • 在浏览器中打开 TeamCity.
  • 浏览到管理 > 用户和群组 > 群组
  • 点击群组名称所有用户
  • 选择标签通知规则(您可以通过以下方式看到电子邮件通知规则默认)
  • 点击添加新规则
  • 在列观看中选择选项 受我的影响的构建变化
  • 在列中选择发送通知时复选框构建失败忽略失败不是由我的更改引起的
  • 点击保存按钮保存这个新的通知规则.
    • Open TeamCity in your browser.
    • Browse to Administration > Users and Groups > Groups
    • Click on the group name All Users
    • Select the tab Notification Rules (you see the Email notifier rules by default)
    • Click on Add new rule
    • choose in the column Watch the option Builds affected by my changes
    • choose in the column Send notification when the checkbox The build fails and Ignore failures not caused by my changes
    • Save this new notification rule with klick on the Save button.
    • 以这种方式创建的通知规则适用于所有用户.这是因为通知规则是在 所有用户 组内的管理部分中创建的,而不是在一个用户的个人通知设置中创建的.这也适用于早期版本的 TeamCity,例如在 5.x.

      A notification rule created that way works for all users. That's because the notification rule was created in the administration section within the group All Users, and not within one users personal notification settings. This works also in earlier versions of TeamCity, e.g. in 5.x.

      如果需要,用户仍然可以选择定义其他规则.

      The user still has the option to define additional rules if needed.

      这篇关于在 Teamcity 中破坏构建的电子邮件用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆