[JIRA] (JENKINS-61911) htmlpublisher skips rest of report actions if one fails even when "Allow missing report"

19 views
Skip to first unread message

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

unread,
Apr 15, 2020, 5:57:02 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip created an issue
 
Jenkins / Bug JENKINS-61911
htmlpublisher skips rest of report actions if one fails even when "Allow missing report"
Issue Type: Bug Bug
Assignee: Richard Bywater
Components: htmlpublisher-plugin
Created: 2020-04-15 09:56
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

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

unread,
Apr 15, 2020, 5:57:03 AM4/15/20
to jenkinsc...@googlegroups.com

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

unread,
Apr 15, 2020, 5:58:02 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip updated an issue
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.

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

unread,
Apr 15, 2020, 5:58:03 AM4/15/20
to jenkinsc...@googlegroups.com

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

unread,
Apr 15, 2020, 6:00:03 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip updated an issue
When the first of two step fails:
{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/
TeamLP- playground/jobs/test-htmlpublisher/builds/9/htmlreports/No_20MarPhi_20HTML_20Report
ERROR: Specified HTML directory '/opt/jenkins/workspace/
TeamLP- playground/test-htmlpublisher/dirDoesNotExist' does not exist.
Finished: SUCCESS
{noformat}

When I swirch order so it's the second that fails:
{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirExists to /var/lib/jenkins/jobs/
TeamLP- playground/jobs/test-htmlpublisher/builds/10/htmlreports/MarPhi_20HTML_20Report
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/
TeamLP- playground/jobs/test-htmlpublisher/builds/10/htmlreports/HTML_20Report
ERROR: Specified HTML directory '/opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist' does not exist.
Finished: SUCCESS
{noformat}

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

unread,
Apr 15, 2020, 6:00:03 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip updated an issue
When the first of two step fails:
{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/TeamLP-playground/jobs/test-htmlpublisher/builds/9/htmlreports/No_20MarPhi_20HTML_20Report
ERROR: Specified HTML directory '/opt/jenkins/workspace/TeamLP-playground/test-htmlpublisher/dirDoesNotExist' does not exist.

Finished: SUCCESS
{noformat}

When I swirch order so it's the second that fails:
{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirExists to /var/lib/jenkins/jobs/TeamLP-playground/jobs/test-htmlpublisher/builds/10/htmlreports/MarPhi_20HTML_20Report
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/TeamLP-playground/jobs/test-htmlpublisher/builds/10/htmlreports/HTML_20Report

ERROR: Specified HTML directory '/opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist' does not exist.
Finished: SUCCESS
{noformat}

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

unread,
Apr 15, 2020, 6:02:02 AM4/15/20
to jenkinsc...@googlegroups.com
Marcus Philip updated an issue
Html Publisher plugin (in a Freesyle job) skips rest of report actions if one fails, even when "Allow missing report".

When the first of the two step fails:

{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/playground/jobs/test-htmlpublisher/builds/9/htmlreports/No_20MarPhi_20HTML_20Report

ERROR: Specified HTML directory '/opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist' does not exist.
Finished: SUCCESS
{noformat}
The second is never run...

 

When I swirch switch order , so that it's the second that fails:

{noformat}
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirExists to /var/lib/jenkins/jobs/playground/jobs/test-htmlpublisher/builds/10/htmlreports/MarPhi_20HTML_20Report
[htmlpublisher] Archiving at BUILD level /opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist to /var/lib/jenkins/jobs/playground/jobs/test-htmlpublisher/builds/10/htmlreports/HTML_20Report

ERROR: Specified HTML directory '/opt/jenkins/workspace/playground/test-htmlpublisher/dirDoesNotExist' does not exist.
Finished: SUCCESS
{noformat}

Both run...

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

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

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

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

richard@bywater.nz (JIRA)

unread,
Apr 24, 2020, 5:24:03 AM4/24/20
to jenkinsc...@googlegroups.com
Richard Bywater commented on Bug JENKINS-61911
 
Re: htmlpublisher skips rest of report actions if one fails even when "Allow missing report"

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

I've taken a look and this looks indeed like a bug that was introduced in 1.22. Previously if "allow missing" was enabled then it skipped to the next report instead of jumping out. I'll take a look at fixing this one as soon as I can to restore the old behaviour.

richard@bywater.nz (JIRA)

unread,
May 7, 2020, 12:13:04 AM5/7/20
to jenkinsc...@googlegroups.com
Richard Bywater updated Bug JENKINS-61911
 

This will be fixed as part of 1.23 which I'll hopefully have a chance to release in the next day or so.

Change By: Richard Bywater
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: 1.23

richard@bywater.nz (JIRA)

unread,
May 9, 2020, 10:24:03 PM5/9/20
to jenkinsc...@googlegroups.com
 

Release has been done. Should hopefully filter its way through in the next 24 hours.

Change By: Richard Bywater
Status: Fixed but Unreleased Closed
Released As: https://github.com/jenkinsci/htmlpublisher-plugin/releases/tag/htmlpublisher- 1.23
Reply all
Reply to author
Forward
0 new messages