HTMLPublisher plugin does not publish latest report to project page if build fails

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We want to go to the failed job, and click the link in the left margin to see which test failed.

      Here is our pipeline step:

       

      pipeline step:
      post { 
        always {
          publishHTML([allowMissing: true, alwaysLinkToLastBuild: true, keepAll: false,   reportDir: 'xxx/target/site/serenity/', reportFiles: 'index.html', reportName: 'Integration Tests Report', reportTitles: 'Integration Tests Report'])
          cleanWs() 
        }
      }

       

      There are logs :
       
      [Pipeline] { (Declarative: Post Actions)[Pipeline] publishHTML[htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at PROJECT level /xxx/target/site/serenity to /xxx/branches/PR-41/htmlreports/Integration_20Tests_20Report

            Assignee:
            Richard Bywater
            Reporter:
            Olexandr Maltsev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: