收到来自Jenkins的测试邮件,但在构建完成后没有收到任何邮件。

huangapple 未分类评论46阅读模式
英文:

Getting test mail from Jenkins but no mails are received when build is complete

问题

你好,我正在尝试配置发送邮件到我的Gmail账户,但是当我从Jenkins发送测试邮件时,我能够成功地从Jenkins收到发送到我注册的电子邮件地址的邮件。但是当我在配置了邮件列表后运行作业时,我遇到了以下错误:

MessagingException消息:535-5.7.8 用户名和密码不被接受。了解更多信息请访问
535 5.7.8 https://support.google.com/mail/?p=BadCredentials v1sm3830548pjs.36 - gsmtp"

我已经按照以下步骤进行操作:

Gmail SMTP服务器地址:smtp.gmail.com
Gmail SMTP用户名:您的完整Gmail地址(例如:example@gmail.com)
Gmail SMTP密码:您的Gmail密码
Gmail SMTP端口:465
Gmail SMTP要求TLS/SSL:是

也尝试过这个:

登录Gmail账户 >> 转到设置 >> 隐私与安全设置

设置双重验证设置(因为没有双重验证,我们无法生成应用程序特定密码)

在Gmail账户中设置双重验证设置后,返回到安全和隐私设置

点击应用程序特定密码 >> 在下拉菜单中输入应用程序的名称,例如Jenkins(默认情况下,Google没有为Jenkins设置任何特定的应用程序密码设置) >> 这将生成一个密码,请记下生成的密码。

我可以成功地在我的Gmail账户上收到测试邮件,但是在作业运行时出现错误。有人能帮忙吗?

英文:

Hi I am trying to configure sending mail to my gmail account ,however when i am sending test mail from jenkins i am receiving it successfully from jenkins to my registered email id,But when i am running job after configuring the mail list i am getting error as follows -:

 MessagingException message: 535-5.7.8 Username and Password not accepted. Learn more at
 535 5.7.8  https://support.google.com/mail/?p=BadCredentials v1sm3830548pjs.36 - gsmtp"

I have followed these steps -:

Gmail SMTP server address: smtp.gmail.com
Gmail SMTP user name: Your full Gmail address (e.g. example@gmail.com)
Gmail SMTP password: Your Gmail password
Gmail SMTP port: 465
Gmail SMTP TLS/SSL required: yes

Also tried this -:

sign in to gmail account >> navigate to settings >> privacy and security settings

setup two step verification settings (because without two step verification we cannot generate application specific password)

after setting up two step verification setting in gmail account navigate back to security and privacy settings

click on application specific password >> give the name of the application in the drop down as Jenkins (google by default does not have any specific application password setting for Jenkins) >> this will generate password note down the password generated.

I am getting test mail successfully on my gmail account however getting error when job runs .

Can somebody please help.

huangapple
  • 本文由 发表于 2020年5月3日 17:18:39
  • 转载请务必保留本文链接:https://java.coder-hub.com/61572140.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定