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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • htmlpublisher-plugin
    • None

      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

            r2b2_nz Richard Bywater
            olexandr_maltsev Olexandr Maltsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: