“错误:域以字符串中的点开头”,同时发送带有电子邮件扩展插件的Jenkins电子邮件

时间:2017-07-29 05:46:09

标签: jenkins email-ext jenkins-email-ext

我安装了Email Extension Plugin 2.57.2。电子邮件工作正常,直到我将插件更新为2.58。出错后我将其降级为2.57.2,但这没有帮助。我不知道我必须从哪个版本开始。有任何想法吗?我在设置或配置中的任何位置.都没有somedomain

00:05:21.000 Email was triggered for: Success
00:05:21.001 Sending email for trigger: Success
00:05:21.238 ERROR: Could not send email as a part of the post-build publishers.
00:05:21.239 javax.mail.internet.AddressException: Domain starts with dot in string ``abc@.somedomain.com''
00:05:21.239    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1247)
00:05:21.239    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091)
00:05:21.239    at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:658)
00:05:21.239    at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:701)
00:05:21.239    at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:534)
00:05:21.239    at javax.mail.Message.getAllRecipients(Message.java:305)
00:05:21.239    at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:549)
00:05:21.239    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:447)
00:05:21.239    at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:435)
00:05:21.239    at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:343)
00:05:21.239    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
00:05:21.239    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:730)
00:05:21.239    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
00:05:21.239    at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
00:05:21.239    at hudson.model.Run.execute(Run.java:1782)
00:05:21.239    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
00:05:21.239    at hudson.model.ResourceController.execute(ResourceController.java:97)
00:05:21.239    at hudson.model.Executor.run(Executor.java:415)
00:05:21.239 Finished: SUCCESS

1 个答案:

答案 0 :(得分:0)

此异常来自java mail api。用户配置了无效的电子邮件,作业配置了无效的电子邮件,或者SCM的电子邮件无效(或者全局默认域以点开头)。

我最近没有对插件进行任何更改,导致此操作开始发生,因此可能与升级无关。