Jim Yanko edited a comment on Bug JENKINS-16163

@Slide-O-Mix

I found some time today to look at this again...

Found and enabled debug in the global config for Jenkins.

I used a sample job that I could easily force to success or failure condition by resetting a timeout value.
This particular job was set to send an email on FIRST FAILURE and FIXED conditions.

  1. Installed Email-ext plugin 2.25
  2. Installed Jenkins 1.498
  3. Forced a Failure with the sample job
  4. Forced a Success with the sample job
  5. NOTE: the "Jenkins Mailer Plugin" is installed but not enabled currently

Below is the console output from when the sample job came into FIXED status...

Starting the test @ Fri Jan 11 23:44:08 UTC 2013 (1357947848086)
Waiting for possible shutdown message on port 4445
Tidying up ...    @ Fri Jan 11 23:44:21 UTC 2013 (1357947861454)
... end of run
Performance: Percentage of errors greater or equal than 5% sets the build as unstable
Performance: Percentage of errors greater or equal than 10% sets the build as failure
Performance: Recording JMeter reports '*.jtl'
Performance: Parsing JMeter report file results.jtl
Performance: File results.jtl reported 0.0% of errors [SUCCESS]. Build status is: SUCCESS
Recording fingerprints
IRC notifier plugin: Sending notification to: #alerts
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Fixed
Trigger Success was overridden by another trigger and will not send an email.
Sending email for trigger: Fixed
NOT overriding default server settings, using Mailer to create session
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:810)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785)
	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)
Some error occured trying to send the email...check the Jenkins log
Finished: SUCCESS
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