Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins:Mailer插件身份验证错误_Jenkins_Jenkins Pipeline_Jenkins Plugins - Fatal编程技术网

Jenkins:Mailer插件身份验证错误

Jenkins:Mailer插件身份验证错误,jenkins,jenkins-pipeline,jenkins-plugins,Jenkins,Jenkins Pipeline,Jenkins Plugins,早上好 我有詹金斯,我正在使用gmail acc发送通知。直到大约两周前它才起作用 在我使用的管道中: step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "someone@xx.com", sendToIndividuals: true ]) Jenkins设置正确,电子邮件通知和扩展电子邮件通知的配置方式相同。gmail设置中允许不太安全的应用已启用 当我发送测试电子邮件时,它工作正常。当我从管

早上好

我有詹金斯,我正在使用gmail acc发送通知。直到大约两周前它才起作用

在我使用的管道中:

step([$class: 'Mailer',
  notifyEveryUnstableBuild: true,
  recipients: "someone@xx.com",
  sendToIndividuals: true
])
Jenkins设置正确,电子邮件通知和扩展电子邮件通知的配置方式相同。gmail设置中允许不太安全的应用已启用

当我发送测试电子邮件时,它工作正常。当我从管道或自由式作业中使用它时,它会失败:

ERROR: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError 26sm2297642wmf.20 - gsmtp

com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1  https://support.google.com/mail/?p=WantAuthError 26sm2297642wmf.20 - gsmtp

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
    at javax.mail.Transport.send0(Transport.java:195)
    at javax.mail.Transport.send(Transport.java:124)
    at hudson.tasks.MailSender.run(MailSender.java:130)
    at hudson.tasks.Mailer.perform(Mailer.java:175)
    at hudson.tasks.Mailer.perform(Mailer.java:138)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1843)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
除了应用程序密码,我确实遵循了谷歌建议的所有故障排除步骤,因为我不能准确地将其与我正在使用的电子邮件地址一起使用。有人能告诉我如何解决这个问题的正确方向吗


谢谢。

我将mailer插件从1.27降级到1.23,这被建议用于解决不同的问题(正好相反,测试邮件不会通过,但可以在作业中工作),它解决了这个问题