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.
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.
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}
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}
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}
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.