Jenkins 无法发送电子邮件 - 需要身份验证 [英] Jenkins fails to send email - Authentication Required

查看:40
本文介绍了Jenkins 无法发送电子邮件 - 需要身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 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. :)

您可以获得 Mailer 插件版本 1.23 这里.

You can get the Mailer plugin version 1.23 here.

有关降级给定插件版本的详细信息在此处

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屋!

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