[JIRA] (JENKINS-54363) ERROR: Could not send email as a part of the post-build publishers.

13 views
Skip to first unread message

saryly@126.com (JIRA)

unread,
Oct 31, 2018, 5:18:01 AM10/31/18
to jenkinsc...@googlegroups.com
Huang Echo created an issue
 
Jenkins / Bug JENKINS-54363
ERROR: Could not send email as a part of the post-build publishers.
Issue Type: Bug Bug
Assignee: David van Laatum
Components: email-ext-plugin
Created: 2018-10-31 09:17
Priority: Minor Minor
Reporter: Huang Echo

Sending email for trigger: Always
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
at hudson.model.Run.execute(Run.java:1845)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Some error occured trying to send the email...check the Jenkins log
Finished: SUCCESS

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

saryly@126.com (JIRA)

unread,
Oct 31, 2018, 5:19:02 AM10/31/18
to jenkinsc...@googlegroups.com
Huang Echo updated an issue
Change By: Huang Echo
|[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

Version: 2.63

 

Sending email for trigger: Always
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
at hudson.model.Run.execute(Run.java:1845)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Some error occured trying to send the email...check the Jenkins log
Finished: SUCCESS

saryly@126.com (JIRA)

unread,
Oct 31, 2018, 5:20:02 AM10/31/18
to jenkinsc...@googlegroups.com

saryly@126.com (JIRA)

unread,
Oct 31, 2018, 5:21:01 AM10/31/18
to jenkinsc...@googlegroups.com
Huang Echo updated an issue
|[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

Version: 2.63

 

Jenkin version: 2.121.2

 

Sending email for trigger: Always
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
at hudson.model.Run.execute(Run.java:1845)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Some error occured trying to send the email...check the Jenkins log
Finished: SUCCESS

saryly@126.com (JIRA)

unread,
Oct 31, 2018, 5:56:02 AM10/31/18
to jenkinsc...@googlegroups.com
Huang Echo updated an issue
|[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

Version: 2.63

  Win10 X86

Jenkin version: 2.121.2

 

Sending email for trigger: Always
ERROR: Could not send email as a part of the post-build publishers.
java.lang.NullPointerException
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
at hudson.model.Run.execute(Run.java:1845)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Some error occured trying to send the email...check the Jenkins log
Finished: SUCCESS

slide.o.mix@gmail.com (JIRA)

unread,
Mar 22, 2019, 9:06:02 AM3/22/19
to jenkinsc...@googlegroups.com

slide.o.mix@gmail.com (JIRA)

unread,
Mar 22, 2019, 9:06:02 AM3/22/19
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Alex Earl
 
Change By: Alex Earl
Assignee: David van Laatum Alex Earl

anand.acharya@tpgtelecom.com.au (JIRA)

unread,
May 13, 2019, 1:09:03 AM5/13/19
to jenkinsc...@googlegroups.com
anand acharya commented on Bug JENKINS-54363
 
Re: ERROR: Could not send email as a part of the post-build publishers.

Hi

I also got similar issue just few days back for email extension plugin 2.66.

Please resolve this issue asap.

Email was triggered for: Unstable (Test Failures)
Sending email for trigger: Unstable (Test Failures)


ERROR: Could not send email as a part of the post-build publishers.

java.lang.NullPointerException
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)

at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1098)
at hudson.model.Run.execute(Run.java:1863)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)


at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

slide.o.mix@gmail.com (JIRA)

unread,
May 13, 2019, 5:33:02 PM5/13/19
to jenkinsc...@googlegroups.com

anand.acharya@tpgtelecom.com.au (JIRA)

unread,
May 13, 2019, 9:35:02 PM5/13/19
to jenkinsc...@googlegroups.com

Hi Alex,

Can you please confirm when this issue will be resolved?

Is there any current workaround in Jenkins to trigger emails post build?

Thanks & Regards,

Anand Acharya

anand.acharya@tpgtelecom.com.au (JIRA)

unread,
May 17, 2019, 1:56:01 AM5/17/19
to jenkinsc...@googlegroups.com

Alex Earl - please confirm when the next version of the email extension plugin will be available with the fix of this issue?

slide.o.mix@gmail.com (JIRA)

unread,
May 17, 2019, 9:04:01 AM5/17/19
to jenkinsc...@googlegroups.com

I'm still trying to replicate it so that I can make sure the fix is good.

anand.acharya@tpgtelecom.com.au (JIRA)

unread,
May 21, 2019, 8:56:02 PM5/21/19
to jenkinsc...@googlegroups.com

Alex Earl , issue is resolved. I added my email id in the Jenkins mail configuration and now the email extension plugin is triggering emails after build.

It seems we need to configure at least one email account in the jenkins mail configuration. If email is not present then null pointer exception is thrown.

slide.o.mix@gmail.com (JIRA)

unread,
Jul 16, 2019, 3:42:02 PM7/16/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages