post-build action (editable email notification)

432 views
Skip to first unread message

Ramin Rad

unread,
Oct 21, 2013, 12:28:46 PM10/21/13
to jenkins...@googlegroups.com

Greetings,

I am adding a Post-Build action (Editable Email Notification) and I am attaching a log file to this attachment but I get the following exception. Per error log below, I am reporting this as a defect.

The build succeeds without the post-build action.

Version of Jenkins: Jenkins ver. 1.535


Thanks,

-ramin


Started by user anonymous

Building in workspace <http://localhost:9080/jenkins/job/TommyWeb/ws/>

Checkout:workspace / <http://localhost:9080/jenkins/job/TommyWeb/ws/> - hudson.remoting.LocalChannel@7bdf6ed6

Using strategy: Default

Last Built Revision: Revision fd448ff7ae7cccaddba9112129f13a1db85df3d8 (origin/HEAD, origin/master)

Fetching changes from 1 remote Git repository

Fetching upstream changes from origin

Seen branch in repository origin/HEAD

Seen branch in repository origin/master

Seen 2 remote branches

Commencing build of Revision fd448ff7ae7cccaddba9112129f13a1db85df3d8 (origin/HEAD, origin/master)

Checking out Revision fd448ff7ae7cccaddba9112129f13a1db85df3d8 (origin/HEAD, origin/master)

Warning : There are multiple branch changesets here

ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com

java.lang.NullPointerException

        at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:242)

        at hudson.plugins.emailext.ExtendedEmailPublisher.prebuild(ExtendedEmailPublisher.java:222)

        at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:815)

        at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:810)

        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:647)

        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)

        at hudson.model.Run.execute(Run.java:1665)

        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)

        at hudson.model.ResourceController.execute(ResourceController.java:88)

        at hudson.model.Executor.run(Executor.java:246)

project=hudson.maven.MavenModuleSet@69f070e8[TommyWeb]

project.getModules()=[hudson.maven.MavenModule@6db17b38[TommyWeb/TommyWeb:TommyWeb][TommyWeb/TommyWeb:TommyWeb][relativePath:TommyWeb]]

project.getRootModule()=hudson.maven.MavenModule@6db17b38[TommyWeb/TommyWeb:TommyWeb][TommyWeb/TommyWeb:TommyWeb][relativePath:TommyWeb]

FATAL: null

java.lang.NullPointerException

        at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:242)

        at hudson.plugins.emailext.ExtendedEmailPublisher.prebuild(ExtendedEmailPublisher.java:222)

        at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:815)

        at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:810)

        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:647)

        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)

        at hudson.model.Run.execute(Run.java:1665)

        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)

        at hudson.model.ResourceController.execute(ResourceController.java:88)

        at hudson.model.Executor.run(Executor.java:246)

Slide

unread,
Oct 21, 2013, 12:30:22 PM10/21/13
to jenkins...@googlegroups.com
What version of email-ext?


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Website: http://earl-of-code.com

Ramin Rad

unread,
Oct 21, 2013, 12:38:53 PM10/21/13
to jenkins...@googlegroups.com
Jenkins Email Extension Plugin 2.35.1.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/R9IsR2RwLDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Slide

unread,
Oct 21, 2013, 1:06:56 PM10/21/13
to jenkins...@googlegroups.com
Someone already issued a pull request to fix this issue and I merged it. I have not done a release yet. Please try configuring triggers, that should workaround the issue.


On Mon, Oct 21, 2013 at 9:28 AM, Ramin Rad <rami...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ramin Rad

unread,
Oct 21, 2013, 1:36:59 PM10/21/13
to jenkins...@googlegroups.com
Awesome! In the Editable Email Notification box, I clicked on Advanced Settings and added a trigger for SUCCESS. It worked as you suggested.

Thanks,
-ramin



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/R9IsR2RwLDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages