0

我安装了电子邮件扩展插件 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
4

1 回答 1

0

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

我最近没有对插件进行任何会导致这种情况开始发生的更改,因此可能与升级无关。

于 2017-07-29T07:38:23.180 回答