Hi,

I am thinking that a workaround to get the "Publish HTML Report" post build 
action to always execute would be to force the build flow job to always succeed 
(ignoring all job failures), and use the Groovy Postbuild Plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin) to flag 
the build as a failure if need be (i.e. pass an argument to the Groovy 
postbuild action that indicates whether the job failed; and if so, throw an 
exception in the Groovy code which makes it look like the entire build failed).

This seems like a bit of a hack, but I think it would work. Is this a bad 
solution? Reasonable solution?

Thanks for taking the time to read this.

Bob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Bob Bick
Sent: Thursday, August 08, 2013 2:46 PM
To: jenkinsci-users@googlegroups.com
Subject: HTML Reports Plugin - Always run?

Hi,

My Build Flow Plugin based job has a "Publish HTML Report" post-build action. 
Regardless of whether the build flow job succeeds or fails, it generates an 
HTML report that should be published. Currently, when the build flow job fails, 
the HTML file is not published because the job stops on the failure.

Is there are way to get a post-build action to always execute (even when there 
is a failure)? This seems like a very common requirement but I did not see it 
documented anywhere. I saw that there is a plugin to run a script regardless as 
to whether the job succeeded or failed, but I need the "Publish HTML Report" 
post-build action to always run.

Kind Regards,
Bob

*** *** ***
This message contains information which may be confidential and privileged. 
Unless you are the addressee (or authorized to receive for the addressee), you 
may not use, copy or disclose to anyone the message or any information 
contained in the message. If you have received the message in error,  please 
advise the sender by reply e-mail and delete the message.
--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

*** *** ***
This message contains information which may be confidential and privileged. 
Unless you are the addressee (or authorized to receive for the addressee), you 
may not use, copy or disclose to anyone the message or any information 
contained in the message. If you have received the message in error,  please 
advise the sender by reply e-mail and delete the message.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to