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

相关推荐
fangdengfu1233 小时前
jenkins使用pipeline实现滚动发布
运维·jenkins
行者-全栈开发3 小时前
SpringBoot CI/CD 流水线实战|Jenkins+GitLab CI,从手动到自动化交付
ci/cd·jenkins·springboot·devops·自动化部署·gitlab ci
只看不学4 小时前
jenkins+Kubernetes实现流水线CI/CD 接口自动化测试
运维·ci/cd·jenkins
醉颜凉1 天前
Elasticsearch 核心数据结构:FST 原理与应用场景全解析
数据结构·elasticsearch·jenkins
Plastic garden1 天前
docker compose elfk
运维·docker·jenkins
终端行者1 天前
企业级 Jenkins Pipeline 实战Docker构建前端+Ansible发布
前端·ci/cd·docker·jenkins
遇见火星1 天前
Jenkins + Ansible 集成实战:把配置管理焊进流水线里
运维·ansible·jenkins
追巨2 天前
单节点elasticsearch安装笔记
大数据·elasticsearch·jenkins
鱼锦0.02 天前
Coreseek和Elasticsearch 有什么区别
大数据·elasticsearch·jenkins