如何限制可以在jenkins中接收电子邮件的用户列表构建失败? [英] How constrain the list of users who can receive the e-mail in jenkins on build failure?

查看:1222
本文介绍了如何限制可以在jenkins中接收电子邮件的用户列表构建失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何指定将在构建失败时接收邮件的用户池。

I want to know how we can specify the pool of users who will receive the mail if the build fails.

例如: -
如果有10个用户是特定构建中的更改的一部分,但我想要发送电子邮件我已指定并配置为接收邮件。 Rest将不会收到邮件

For example :- If there are 10 users who are part of the changes in a particular build, but I want to send e-mails only to those whom I have specified and configured to receive mails. Rest will not receive the mails

假设我只想向A,B,C发送邮件。即使构建失败,因为用户D,我不想发送邮件到D。

Suppose I want to send mails only to A, B, C. Even if build fails because of User D, I don't want to send mail to D.

基本上,我问是否可以限制可以接收邮件的用户列表?

可以吗?

感谢

推荐答案

是的。在后期构建操作中:

Yes there is. In the post-build actions:


  • 添加电子邮件通知

  • 在收件人列表中添加所有要添加的电子邮件地址

  • UNCHECK 向打破版本的个人发送单独的电子邮件 b $ b

这将只发送电子邮件给您提供的电子邮件地址,无论谁打破了版本。

This will send the emails only to those whose email address you have provided, regardless of who broke the build. However, this will not send the emails to the build breakers.

您的其他选项是转到人物部分,选择您的用户不想接收电子邮件,并从个人资料中移除他们的电子邮件地址。这样,即使他们打破了构建,他们也不会收到电子邮件。只有配置了电子邮件地址的用户才会收到电子邮件。

Your other option is to go to the People section, select the users you don't want receiving emails, and remove their email address from their individual profiles. This way they won't get an email even if they broke the build. Only those users whose email addresses are configured will get emails.

这篇关于如何限制可以在jenkins中接收电子邮件的用户列表构建失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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