Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61911

htmlpublisher skips rest of report actions if one fails even when "Allow missing report"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins 2.222 (latest LTS)
      HTML Publisher plugin 1.22 (latest)

      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:

      [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
      

      The second is never run...

       

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

      [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
      

      Both run...

            r2b2_nz Richard Bywater
            marcus_phi Marcus Philip
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: