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区域的邮件发送。

2. Extended E-mail Notification

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

3. Editable Email Notification

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

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

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值