[JIRA] (JENKINS-61910) htmlpublisher makes Freestyle job FAILURE, not UNSTABLE when action fails due to missing report and skips rest of reports

7 views
Skip to first unread message

marcus.a.philip@gmail.com (JIRA)

unread,
Apr 15, 2020, 5:54:03 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip created an issue
 
Jenkins / Bug JENKINS-61910
htmlpublisher makes Freestyle job FAILURE, not UNSTABLE when action fails due to missing report and skips rest of reports
Issue Type: Bug Bug
Assignee: Richard Bywater
Components: htmlpublisher-plugin
Created: 2020-04-15 09:53
Environment: Jenkins 2.222 (latest LTS)
HTML Publisher plugin 1.22 (latest)
Priority: Minor Minor
Reporter: Marcus Philip

When I have option " Allow missing report" false and no report is found, the job is set to result FAILURE. Also the rest of the reports are skipped.

Also, I think the convention of post-build actions is to make the job UNSTABLE when it fails unless it's a misconfiguration. I guess you could argue that this can indeed be a misconfiguration.

https://github.com/jenkinsci/htmlpublisher-plugin/blob/master/src/main/java/htmlpublisher/HtmlPublisher.java#L232 https://github.com/jenkinsci/htmlpublisher-plugin/blob/master/src/main/java/htmlpublisher/HtmlPublisher.java#L229

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

richard@bywater.nz (JIRA)

unread,
Apr 24, 2020, 4:35:04 AM4/24/20
to jenkinsc...@googlegroups.com
Richard Bywater commented on Bug JENKINS-61910
 
Re: htmlpublisher makes Freestyle job FAILURE, not UNSTABLE when action fails due to missing report and skips rest of reports

Thanks for the report and apologies for the delay in responding. With all that's going on in the world it's taking a while to get to things

It's a tricky one as I think you could view it both ways as you say as it could be a misconfiguration but it could also be by design. I'd probably be loathed to change it outright but perhaps being able to set whether you want publisher errors to cause the build to be UNSTABLE or FAILED would do the trick (with the default being FAILED as per today).

I can't promise to look at making a change in any particular timeframe but if you are so inclined then PRs are always welcome.

marcus.a.philip@gmail.com (JIRA)

unread,
Apr 24, 2020, 6:51:02 AM4/24/20
to jenkinsc...@googlegroups.com

It is a minor issue, so I think you can close this. Especially if you fix the skipping part in the other issue I opened.

richard@bywater.nz (JIRA)

unread,
May 7, 2020, 12:15:03 AM5/7/20
to jenkinsc...@googlegroups.com
Richard Bywater closed an issue as Won't Fix
 

As suggested will close this issue as, although whether it should be unstable or failed is debateable, at least a fix for JENKINS-61911 will make it less of an issue.

Change By: Richard Bywater
Status: Open Closed
Resolution: Won't Fix
Reply all
Reply to author
Forward
0 new messages