Issue Type: Bug Bug
Affects Versions: current
Assignee: Slide-O-Mix
Components: email-ext
Created: 18/Dec/12 9:20 PM
Description:

NullPointerException when sending post build emails - all triggers appear to be impacted

Seems there may be a conflict between

  • Jenkins ver. 1.494
  • Jenkins Email Extension Plugin ver. 2.25 & 2.24.1

I upgraded my jenkins instance yesterday from 1.493 to 1.494 and then noticed that builds no longer sent email alerts as expected when status changed.

Am using the Email Extension Plugin to trigger email alerts mainly when build meets the following conditions:

  • first time failure
  • fixed

To get things working again, I needed to rollback my jenkins instance to v 1.493 as it appeared that with both ver. 2.25 & 2.24.1 of the mail plugin, mail did not send properly. As soon as I rolled back the jenkins version, mail started working properly again.

  • 20121217 updated jenkins to v1.494 (and plugins)
  • 20121218 noticed all email notifications are failing with null pointer error (irc alerts still work)
  • 20121218 downgraded mail plugin to 2.24.1 (from 2.25.0) - still failing to send emails (all statuses)
  • 20121218 downgraded jenkins to 1.493 (from 1.494) - mail now sends successfully

Info from build log for a build was triggered as 'fixed' (same type of error seen for build that was triggered as 'first failure')

IRC notifier plugin: Sending notification to: #alerts
Email was triggered for: Fixed
Trigger Success was overridden by another trigger and will not send an email.
Sending email for trigger: Fixed
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
	at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:431)
	at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297)
	at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289)
	at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
	at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
	at hudson.model.Run.execute(Run.java:1587)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:236)
Finished: SUCCESS
Project: Jenkins
Priority: Major Major
Reporter: Jim Yanko
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to