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

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

    • 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

          [JENKINS-62547] HTMLPublisher plugin does not publish latest report to project page if build fails

          olexandr_maltsev I think this might be a duplicate of JENKINS-46722 and is based on a bug which I've tried to figure out a fix for but not managed yet. I'll see if I can try and find some time to take another stab at it but for now will close this as a duplicate so please watch the other issue for any updates.

          Richard Bywater added a comment - olexandr_maltsev I think this might be a duplicate of  JENKINS-46722 and is based on a bug which I've tried to figure out a fix for but not managed yet. I'll see if I can try and find some time to take another stab at it but for now will close this as a duplicate so please watch the other issue for any updates.

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

              Created:
              Updated:
              Resolved: