Jenkins无法发送电子邮件-需要验证 [英] Jenkins fails to send email - Authentication Required
问题描述
我有一个在Linux VM上运行的Jenkins服务器.我希望我的詹金斯(Jenkins)每次开始构建时都给我发送电子邮件.我已经按照以下步骤设置了电子邮件服务.由于我在Google帐户中使用2因子身份验证,因此我为Jenkins创建了应用密码,但仍然显示需要身份验证".我还安装了扩展电子邮件通知插件,并以完全相同的方式设置了相同的结果.有谁知道这里可能是什么问题?
I have a Jenkins server running on a Linux VM. I would like my Jenkins to send me an email every time a build gets started. I have set the email service up as below. As I am using 2 factor authentication for my google account, I have created an app password for Jenkins, but it still says "authentication required". I have also installed the Extended E-mail notification plugin and set it up the exact same way with the same result. Does anyone know what could be the issue here?
推荐答案
我进行了测试设置,并尝试使用您的配置.我也面临同样的问题.由于我很久以前就已经测试过该工具,并且效果很好,所以我知道它与最新插件版本的某些更改有关.因此,我尝试将 Mailer 插件从版本1.24
降级为1.23
,并将其降级工作了. :)
I did a test set up and tried using exactly your configuration. I too faced the same issue. Since i had tested this thing long time ago and it worked well then, i knew it had to do with some change in latest plugin version. So i tried downgrading the Mailer plugin from version 1.24
to 1.23
and it worked. :)
您可以在1.23
此处.
在此处中介绍了有关降级给定插件版本的详细信息.
Details about downgrading a given plugin's version is described here
注意:您无需配置Extended E-mail Notification
部分即可使其工作.保持原状.
Note: You don't have to configure Extended E-mail Notification
section for this to work. Just leave it as is.
这篇关于Jenkins无法发送电子邮件-需要验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!