我有一个 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
因此不相关的人会收到电子邮件...如何避免这种情况?