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

相关推荐
小白的码BUG之路2 天前
Jenkins -- 配置jdk和maven
java·jenkins·maven
9144062322 天前
安装jenkins遇到的问题总结
运维·jenkins
小白的码BUG之路2 天前
Jenkins -- 配置ssh
运维·ssh·jenkins
王琦03183 天前
jenkins使用手册
运维·jenkins
不老刘3 天前
Maven 多医院分支场景下 groupId 的设计与 Jenkins 落地实践
servlet·jenkins·maven
wangfenglei1234565 天前
jenkins权限配置
运维·jenkins
骑着蜗牛撵大象3275 天前
CentOS 7 单机拉起 Elasticsearch 7.17.29:从内核报错到公网可达的全链路记录
elasticsearch·centos·jenkins·restful·内核调优·公网部署
打工仔折腾 AI5 天前
CentOS 7 单机部署 Elasticsearch 7.17.29:启动报错排查与 CRUD 验证
人工智能·后端·python·elasticsearch·性能优化·centos·jenkins
西柚不烦恼6 天前
PyCharm 虚拟环境与 Jenkins 自动化部署实践
pycharm·自动化·jenkins
空空dream6 天前
04 | 用 Jenkins 打通 CI自动构建镜像并推送到本地 Harbor
运维·ci/cd·jenkins