如何禁止Jenkins向不相关的Git用户发送电子邮件

问题描述 投票:0回答:1

我有一个 Jenkins 工作,它使用扩展电子邮件通知插件在构建完成后发送信息。我将

$BUILD_USER_EMAIL
设置为收件人,它基本上可以工作。但是...当生成的构建页面看起来像这样时

我在日志中发现 Jenkins 出于某种原因尝试向触发构建的用户发送电子邮件,并且还向列出的 git 更改的每个作者发送电子邮件:

Email was triggered for: Always
Sending email for trigger: Always
Not sending mail to unregistered user [email protected] because your SCM claimed this was associated with a user ID ‘jake' which your security realm does not recognize; you may need changes in your SCM plugin
Not sending mail to unregistered user [email protected] because your SCM claimed this was associated with a user ID ‘john' which your security realm does not recognize; you may need changes in your SCM plugin
Not sending mail to unregistered user [email protected] because your SCM claimed this was associated with a user ID ‘jim' which your security realm does not recognize; you may need changes in your SCM plugin
Sending email to: [email protected] [email protected]
Finished: SUCCESS

因此不相关的人会收到电子邮件...如何避免这种情况?

jenkins email-notifications
1个回答
0
投票

终于发现问题了。默认情况下,“高级设置”中有一个“开发人员”选项,应将其删除。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.