Jenkins邮件发送失败问题解决

复制代码
如下提示为 Extended E-mail Notification开启Debug模式下显示的错误信息,
(Debug模式设置方法:Dashboard-> manage Jenkins->configure System)

DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 
DEBUG SMTP: Using mechanism LOGIN
DEBUG SMTP: AUTH LOGIN command trace suppressed
DEBUG SMTP: AUTH LOGIN failed
AuthenticationFailedException message: 535 Error: authentication failed

535提示为认证失败,原因:

设置的邮件地址和密码不对导致的,注意了存在两个设置邮件地址和密码的地方,分别对应不是区块的邮件发送配置。

  1. Email Notification

这个区域设置邮箱和密码后,可以点击其下侧的Test configuration by sending test e-mail ,用于确认配置的邮箱地址和密码是否可用。

但是!!!此部分配置的邮箱和密码用于Dashboard -> ProjectXX -> Configuration -> Post-build Actions -> E-mail Notification区域的邮件发送。

  1. Extended E-mail Notification

这个区域配置的邮箱用于Jenkins编译后的Editable Email Notification配置的邮件发送!

  1. Editable Email Notification

路径:Dashboard -> ProjectXX -> Configuration -> Post-build Actions -> Editable Email Notification

此部分的邮件发送,使用Extended E-mail Notification中配置的邮件地址和密码。

相关推荐
LSL666_1 天前
5 Repository 层接口
android·运维·elasticsearch·jenkins·repository
飞哥专栏2 天前
阿里云效 = Jenkins + Gitlab + 免费服务器
阿里云·gitlab·jenkins
linmengmeng_13142 天前
【Jenkins】Jenkins配置从节点 - Launch Agent
运维·servlet·jenkins
LSL666_3 天前
1 elasticSearch 和 IK分词器的本地下载
大数据·elasticsearch·jenkins
破烂pan3 天前
Jenkins 定时触发(cron)使用说明
运维·jenkins
liuyunshengsir3 天前
让 Elasticsearch Delete By Query 请求立即生效
大数据·elasticsearch·jenkins
❥ღ Komo·4 天前
Elasticsearch单机部署全指南
运维·jenkins
chevysky.cn4 天前
Jenkins自动部署CI/CD
运维·ci/cd·jenkins
Archy_Wang_15 天前
基于BaGet 构建NuGet私有库并实现类库打包到NuGet私有库
运维·jenkins
佐杰5 天前
Jenkins使用指南1
java·运维·jenkins