• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • None
    • Jenkins 2.176.3, HTML Publisher 1.19

      Our CodeCoverage reports on Jenkins are no longer viewable - when you click the link in the menu we now see a blank screen with no tabs and no content, just the "Back to build" and "zip" links. Clicking the "zip" link allows the report to be downloaded, and it can be opened locally. Opening the Chrome dev tools, there is an error "Uncaught TypeError: Cannot read property 'setAttribute' of null"

      I've attached screenshots, and the report zip. 

          [JENKINS-59511] Error opening report with HTML Publisher

          Henry Wilson created issue -

          Hi wilsoh58 - are you able to share a screenshot or similar of the HTML Publishing configuration too for reference? Also did this work on a previous version of the plugin and it has stopped working with the release of 1.19?

          Richard Bywater added a comment - Hi wilsoh58 - are you able to share a screenshot or similar of the HTML Publishing configuration too for reference? Also did this work on a previous version of the plugin and it has stopped working with the release of 1.19?

          Thomas Gimpel added a comment -

          Same here. The HTML Publishing worked with previous version, but stopped with release of 1.1.9.

          Thomas Gimpel added a comment - Same here. The HTML Publishing worked with previous version, but stopped with release of 1.1.9.

          git if you could please share your config for the HTML publisher and some background info that would be great as perhaps there's a particular use-case that was missed in the change.

          Richard Bywater added a comment - git if you could please share your config for the HTML publisher and some background info that would be great as perhaps there's a particular use-case that was missed in the change.

          Georgi Georgiev added a comment - - edited

          I had the same issue with 1.19.
          Just switched to previous version and everything works fine again.

          Here is my configuration for the plugin(I am using pipeline jobs):

          publishHTML(target: [
                  allowMissing         : false,
                  alwaysLinkToLastBuild: true,
                  keepAll              : true,
                  reportDir            : "test-output",
                  reportFiles          : "report-0.html, rerun-0.html",
                  reportName           : "MyReport"
          ])  

          Unfortunately, I have no special background info - the plugin got updated yesterday and this issue appeared immediately.

           

          Btw, I want to mention that this issue is not related only to pipeline scripts as I reproduced it with standard matrix job with same configuration.

          Georgi Georgiev added a comment - - edited I had the same issue with 1.19. Just switched to previous version and everything works fine again. Here is my configuration for the plugin(I am using pipeline jobs): publishHTML(target: [ allowMissing : false , alwaysLinkToLastBuild: true , keepAll : true , reportDir : "test-output" , reportFiles : "report-0.html, rerun-0.html" , reportName : "MyReport" ]) Unfortunately, I have no special background info - the plugin got updated yesterday and this issue appeared immediately.   Btw, I want to mention that this issue is not related only to pipeline scripts as I reproduced it with standard matrix job with same configuration.

          Thanks ggeorgiev - the publishHTML snippet helps to start investigating.

          Richard Bywater added a comment - Thanks ggeorgiev - the publishHTML snippet helps to start investigating.

          Thomas Gimpel added a comment -

          I'm also calling the publishHTML from a pipeline script:

          publishHTML(target: [
           allowMissing: true,
           alwaysLinkToLastBuild: true,
           keepAll: true,
           reportDir: 'testresults/smoketest',
           reportFiles: 'report.html, log.html, *.png',
           reportName: 'Smoke test result'
           ]);

          {{}}
          {{ }}

          Thomas Gimpel added a comment - I'm also calling the publishHTML from a pipeline script: publishHTML(target: [ allowMissing: true , alwaysLinkToLastBuild: true , keepAll: true , reportDir: 'testresults/smoketest' , reportFiles: 'report.html, log.html, *.png' , reportName: 'Smoke test result' ]); {{}} {{ }}

          Henry Wilson added a comment -

          r2b2_nz as per other comments I'm using pipeline configuration as below. Was definitely working with the previous version. 

           

          publishHTML([    
             allowMissing: true,
             alwaysLinkToLastBuild: false,
             keepAll: true,
             reportDir: 'packages/assistant-client-core/coverage/lcov-report',
             reportFiles: 'index.html',
             reportName: 'CodeCoverage',
             reportTitles: ''])

           

          Henry Wilson added a comment - r2b2_nz as per other comments I'm using pipeline configuration as below. Was definitely working with the previous version.    publishHTML([     allowMissing:  true ,    alwaysLinkToLastBuild:  false ,    keepAll:  true ,    reportDir:  'packages/assistant-client-core/coverage/lcov-report' ,    reportFiles:  'index.html' ,    reportName:  'CodeCoverage' ,    reportTitles: ''])  

          Henry Wilson added a comment -

          ggeorgiev is there an easy way to roll back to the previous version? Annoyingly the Jenkins UI only ever presents the latest version to install...

          Henry Wilson added a comment - ggeorgiev is there an easy way to roll back to the previous version? Annoyingly the Jenkins UI only ever presents the latest version to install...

          wilsoh58 if you go to Manage Jenkins / Manage Plugins and go to the Installed plugins tab, there hopefully is a Downgrade button there to take you back to 1.18.

          Richard Bywater added a comment - wilsoh58 if you go to Manage Jenkins / Manage Plugins and go to the Installed plugins tab, there hopefully is a Downgrade button there to take you back to 1.18.

            r2b2_nz Richard Bywater
            wilsoh58 Henry Wilson
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: