[ https://issues.jenkins-ci.org/browse/JENKINS-13564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161918#comment-161918 ]
SCM/JIRA link daemon commented on JENKINS-13564: ------------------------------------------------ Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/AbstractBuild.java http://jenkins-ci.org/commit/jenkins/4f272d4b6d2c5868bbe1a86dc0789edb6fbf6b37 Log: [FIXED JENKINS-13564] If there is any problem when searching for user partipication in the build, end up more gracefully. > Mailer fails to send an email whe thre's a project with broken commits > ---------------------------------------------------------------------- > > Key: JENKINS-13564 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13564 > Project: Jenkins > Issue Type: Bug > Components: core > Reporter: vjuranek > Assignee: vjuranek > > When mailer tries to determine email user's email address, it searches for it > in various places. Some resolvers can throw an exception during the search > (e.g. git, one example is bellow) which results in failure of the search and > consequently failure of the the build. The search should handle these case > more gracefully. > {noformat} > ERROR: Publisher hudson.tasks.Mailer aborted due to exception > java.lang.RuntimeException: No author in changeset > ee602dc8116843c09f46beb374071a1547c1120b > at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:240) > at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:357) > at > hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1383) > at hudson.model.User.getProjects(User.java:402) > at > hudson.scm.MailAddressResolverImpl.findMailAddressFor(MailAddressResolverImpl.java:19) > at > hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:100) > at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:495) > at hudson.tasks.MailSender.buildCulpritList(MailSender.java:408) > at hudson.tasks.MailSender.createEmptyMail(MailSender.java:368) > at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:190) > at hudson.tasks.MailSender.getMail(MailSender.java:181) > at hudson.tasks.MailSender.execute(MailSender.java:115) > at hudson.tasks.Mailer.perform(Mailer.java:110) > at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > at > hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697) > at > hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672) > at > hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650) > at hudson.model.Build$RunnerImpl.post2(Build.java:162) > at > hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619) > at hudson.model.Run.run(Run.java:1429) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:238) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira