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

HTML Publisher plugin only publishes first of multiple configured reports

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have configured several directories that contain HTML files, including an index.html in each, to be published by the HTML Publisher plugin.

      Only the first one of these is published and linked from the project page.

        Attachments

          Activity

          Hide
          sebastian_bergmann sebastian_bergmann added a comment -

          Stig Kleppe-Jørgensen looked at the code and found

          //TODO: return ALL project actions, not just the first one
          return this.reportTargets.get(0).getProjectAction(project);
          

          in the code, where an action equals a link to a report.

          Show
          sebastian_bergmann sebastian_bergmann added a comment - Stig Kleppe-Jørgensen looked at the code and found //TODO: return ALL project actions, not just the first one return this .reportTargets.get(0).getProjectAction(project); in the code, where an action equals a link to a report.
          Hide
          mcrooney mcrooney added a comment -

          This was originally not possible (hence the TODO) because of JENKINS-4518, which is now fixed. I should be able to fix this fairly easily.

          Show
          mcrooney mcrooney added a comment - This was originally not possible (hence the TODO) because of JENKINS-4518 , which is now fixed. I should be able to fix this fairly easily.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mcrooney
          Path:
          trunk/hudson/plugins/htmlpublisher/pom.xml
          trunk/hudson/plugins/htmlpublisher/src/main/java/htmlpublisher/HtmlPublisher.java
          http://jenkins-ci.org/commit/27610
          Log:
          [htmlpublisher] support multiple project actions JENKINS-5069

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mcrooney Path: trunk/hudson/plugins/htmlpublisher/pom.xml trunk/hudson/plugins/htmlpublisher/src/main/java/htmlpublisher/HtmlPublisher.java http://jenkins-ci.org/commit/27610 Log: [htmlpublisher] support multiple project actions JENKINS-5069
          Hide
          mcrooney mcrooney added a comment -

          This should be fixed with the 0.2.2 release, which should be available via the update center within a day I imagine!

          Show
          mcrooney mcrooney added a comment - This should be fixed with the 0.2.2 release, which should be available via the update center within a day I imagine!
          Hide
          themagnificent11 Saji Weerasingham added a comment - - edited

          I think this issue has started happening again.

          I have Jenkins version 1.528 and HTML Publisher 1.2.

          I have a directory in my workspace called "_StaticAnalysis". My first report is in /_StaticAnalysis/CoverageReport (index page is index.htm). This report always loaded when the link in the dashboard page was clicked. However, it stopped working when I introduced a second report. The second report is in /_StaticAnalysis/crap (index page is index.html). Link for this second report does not work.

          The strange thing is that the report artifacts for both reports are getting archived in C:\Program Files (x86)\Jenkins\jobs[job name]\builds[build date number]\htmlreports; the links are just not working.

          Show
          themagnificent11 Saji Weerasingham added a comment - - edited I think this issue has started happening again. I have Jenkins version 1.528 and HTML Publisher 1.2. I have a directory in my workspace called "_StaticAnalysis". My first report is in /_StaticAnalysis/CoverageReport (index page is index.htm). This report always loaded when the link in the dashboard page was clicked. However, it stopped working when I introduced a second report. The second report is in /_StaticAnalysis/crap (index page is index.html). Link for this second report does not work. The strange thing is that the report artifacts for both reports are getting archived in C:\Program Files (x86)\Jenkins\jobs[job name]\builds[build date number]\htmlreports; the links are just not working.
          Hide
          mcrooney mcrooney added a comment -

          Are you getting 404s with Jenkins 1.528? There was a regression in Jenkins (https://issues.jenkins-ci.org/browse/JENKINS-19168) and it looks like when 1.530 comes out it should be resolved, otherwise downgrading to 1.527 also resolves the issue.

          Show
          mcrooney mcrooney added a comment - Are you getting 404s with Jenkins 1.528? There was a regression in Jenkins ( https://issues.jenkins-ci.org/browse/JENKINS-19168 ) and it looks like when 1.530 comes out it should be resolved, otherwise downgrading to 1.527 also resolves the issue.

            People

            • Assignee:
              mcrooney mcrooney
              Reporter:
              sebastian_bergmann sebastian_bergmann
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: