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

HTML publisher does not fail build when directory not found and allowMissing=false

XMLWordPrintable

      When using 
      publishHTML with allowMissing: false and directory is not found, publisher sets the build status to FAILURE, but does not fail the build.
       
      Seems issue is in src/main/java/htmlpublisher/HtmlPublisher.java
       
      where the following returns true and not false.
       
      if (!archiveDir.exists()) {
          listener.error("Specified HTML directory '" + archiveDir + "' does not exist.");
          if (!allowMissing)

      {         build.setResult(Result.FAILURE);         return true;     }

      }
       

            r2b2_nz Richard Bywater
            shaigilboa_gm Shai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: