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中配置的邮件地址和密码。

相关推荐
Hello.Reader4 小时前
Elasticsearch Rails 集成(elasticsearch-model / ActiveRecord)
大数据·elasticsearch·jenkins
果子⌂4 小时前
Git+Jenkins实战(一)
运维·git·jenkins
chenglin0165 小时前
Logstash——输出(Output)
运维·jenkins
苦逼IT运维5 小时前
Jenkins + SonarQube 从原理到实战四:Jenkins 与 Gerrit 集成并实现自动任务
运维·git·测试工具·ci/cd·jenkins
终端行者6 小时前
jenkins实现分布式构建并自动发布到远程服务器上 jenkins实现自动打包编译发布远程服务器
服务器·分布式·jenkins
帧栈1 天前
Jenkins+GitLab在CentOS7上的自动化部署方案
自动化·gitlab·jenkins
chenglin0161 天前
ES_预处理
大数据·elasticsearch·jenkins
chenglin0161 天前
ES_文档
大数据·elasticsearch·jenkins
Hello.Reader2 天前
Elasticsearch Ruby 客户端安装与版本兼容指南
elasticsearch·jenkins·ruby
cxyll12342 天前
postman+newman+jenkins接口自动化
自动化·jenkins·postman