-
Bug
-
Resolution: Fixed
-
Major
-
None
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.
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)