• 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 added a comment -

          r2b2_nz yes our agents are separate from Master

          Henry Wilson added a comment - r2b2_nz yes our agents are separate from Master

          Thomas Gimpel added a comment -

          Also here: publishHTML was called on a node other than master.

          Thomas Gimpel added a comment - Also here: publishHTML was called on a node other than master.

          Thanks that reconciles my theory. Taking another look at the code it will only work currently if the job is run on the same machine as the Jenkins master. As its going to take a little while to solve that, I'm reverting the change and will be pushing out 1.20 soon which will revert the functionality back to the way 1.18 is working.

          Richard Bywater added a comment - Thanks that reconciles my theory. Taking another look at the code it will only work currently if the job is run on the same machine as the Jenkins master. As its going to take a little while to solve that, I'm reverting the change and will be pushing out 1.20 soon which will revert the functionality back to the way 1.18 is working.

          1.20 is released which should be available in the next few hours. This puts the logic back to 1.18 style handling.

          Richard Bywater added a comment - 1.20 is released which should be available in the next few hours. This puts the logic back to 1.18 style handling.

          Hello,

          I face the exact same issue with plugin version 1.23 and Jenkins 2.235.1

          only the zip download link is available

          running publisher from another node than master

           

          Federico Garcia added a comment - Hello, I face the exact same issue with plugin version 1.23 and Jenkins 2.235.1 only the zip download link is available running publisher from another node than master  

          Are you able to please provide the config and console output of the job that is creating the HTML?

          Richard Bywater added a comment - Are you able to please provide the config and console output of the job that is creating the HTML?

          Here is the config used in the pipeline

          publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'logs/', reportFiles: 'index.html', reportName: 'HTML Report', reportTitles: ''])

          and the output in the logs :

          [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level /home/jenkins/agent/checkout/devops.k8s/sahi/logs to /var/jenkins_home/jobs/filtering/branches/devops-k8s.knk400/htmlreports/HTML_20Report

          Federico Garcia added a comment - Here is the config used in the pipeline publishHTML([allowMissing: false , alwaysLinkToLastBuild: false , keepAll: false , reportDir: 'logs/' , reportFiles: 'index.html' , reportName: 'HTML Report' , reportTitles: '']) and the output in the logs : [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level /home/jenkins/agent/checkout/devops.k8s/sahi/logs to / var /jenkins_home/jobs/filtering/branches/devops-k8s.knk400/htmlreports/HTML_20Report

          I did a test on another environment,

          Jenkins ver. 2.222.1, plugin 1.22

          the same job running on master has the same result, only zip link available while it was working few months ago (probably plugin v1.18 or so).

          Federico Garcia added a comment - I did a test on another environment, Jenkins ver. 2.222.1 , plugin 1.22 the same job running on master has the same result, only zip link available while it was working few months ago (probably plugin v1.18 or so).

          Any update on this issue? Having the same behaviour with Jenkins 2.336 and Publisher Plugin 1.29.

          Tobias Schäfer added a comment - Any update on this issue? Having the same behaviour with Jenkins 2.336 and Publisher Plugin 1.29.

          I'm having the same error with Jenkins 2.336 and Publisher Plugin 1.29.

          Jessica Johnson added a comment - I'm having the same error with Jenkins 2.336 and Publisher Plugin 1.29.

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

              Created:
              Updated: