gpt4 book ai didi

email - Jenkins 电子邮件插件不会向破坏构建的用户发送电子邮件

转载 作者:行者123 更新时间:2023-12-03 12:02:16 32 4
gpt4 key购买 nike

我已将 Jenkins 设置为仅向使用 email-ext 插件破坏构建的用户发送电子邮件,但出现此错误:

Not sending mail to unregistered user user@example.com because your SCM claimed this was associated with a user ID ‘John Smith' which your security realm does not recognize; you may need changes in your SCM plugin



我真的不明白这个错误是什么意思,是我们的 SCM 中的问题,还是电子邮件插件中的问题?电子邮件取自提交历史记录,我应该在某处注册它们以便 Jenkins 开始工作吗?

供引用, this is the code around the error message在插件的源代码中:
                    } catch (UsernameNotFoundException x) {
if (SEND_TO_UNKNOWN_USERS) {
listener.getLogger().printf("Warning: %s is not a recognized user, but sending mail anyway%n", userAddress);
} else {
listener.getLogger().printf("Not sending mail to unregistered user %s because your SCM"
........

如何启用 SEND_TO_UNKNOWN_USERS ?

这个 bug report中也提到了错误信息.

最佳答案

对于 V2.61 或更高版本,这可以通过单选按钮进行配置。

Manage Jenkins -> Configure System -> Extended E-mail Notification


并勾选 的单选按钮允许发送给未注册的用户
enter image description here
编辑:如果这不起作用,请参阅 https://stackoverflow.com/a/45353810/492336对于另一种解决方案。

关于email - Jenkins 电子邮件插件不会向破坏构建的用户发送电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45350740/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com