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

HTML Publisher plugin 0.2.2 - Report link missing after bounce

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Development

      In Hudson, we use HTML publisher to archieve the reports. Whenever the Hudson is re-started (Server reboot) , the reports link shown on the builds within the job are getting de-linked and showns "Jobname - #BuildNumber"

      Snap shot is attached for your reference..
      1)Build with link available
      2)After bounce - Build with invalid link

      Thanks
      Balaji

        1. hudson_err.zip
          2 kB
        2. HUDSON-5775-ver2.patch
          2 kB
        3. HUDSON-5775.patch
          4 kB
        4. log.zip
          2 kB
        5. After bounce  -  Build with invalid link.JPG
          After bounce - Build with invalid link.JPG
          16 kB
        6. Build with link enabled.JPG
          Build with link enabled.JPG
          14 kB

          [JENKINS-5775] HTML Publisher plugin 0.2.2 - Report link missing after bounce

          balajirangarajan created issue -

          mcrooney added a comment -

          Interesting, thanks for the report. So this only happens when using the "Keep past reports" option? And, is this a new issue in 0.2 or did it happen in 0.1 also? Thanks!

          mcrooney added a comment - Interesting, thanks for the report. So this only happens when using the "Keep past reports" option? And, is this a new issue in 0.2 or did it happen in 0.1 also? Thanks!

          balajirangarajan added a comment - - edited

          We found this in 0.1 , but today when i tired with 0.2.2 got the same problem. Yes we had enabled Keep past reports.

          balajirangarajan added a comment - - edited We found this in 0.1 , but today when i tired with 0.2.2 got the same problem. Yes we had enabled Keep past reports.

          arostfx added a comment -

          I've attached some logs which may be useful in debugging this.

          • Used versions: Hudson 1.355, HTML publisher plugin V0.2.2.
          • the logs still do exist in HTML format in the job directories, so they have not been erased
          • the attached errors is what I get on Hudson console when opening the status page of a job that shows such a broken link

          Thanks,
          /alex

          arostfx added a comment - I've attached some logs which may be useful in debugging this. Used versions: Hudson 1.355, HTML publisher plugin V0.2.2. the logs still do exist in HTML format in the job directories, so they have not been erased the attached errors is what I get on Hudson console when opening the status page of a job that shows such a broken link Thanks, /alex

          arostfx added a comment -

          Hudson console Java errors which appear when opening a status page that has those broken links.

          arostfx added a comment - Hudson console Java errors which appear when opening a status page that has those broken links.
          arostfx made changes -
          Attachment New: log.zip [ 19368 ]

          Code changed in hudson
          User: : lkishalmi
          Path:
          trunk/hudson/plugins/htmlpublisher/src/main/java/htmlpublisher/HtmlPublisherTarget.java
          http://jenkins-ci.org/commit/30463
          Log:
          Do not show the HTML report link if there is no HTML report available.
          This might affect issues: JENKINS-5775 and JENKINS-5683

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : lkishalmi Path: trunk/hudson/plugins/htmlpublisher/src/main/java/htmlpublisher/HtmlPublisherTarget.java http://jenkins-ci.org/commit/30463 Log: Do not show the HTML report link if there is no HTML report available. This might affect issues: JENKINS-5775 and JENKINS-5683

          arostfx added a comment -

          Am I correct that this will only make the broken "links" disappear, but it will not solve the problem that reports disappear after a Hudson restart?

          Thanks,
          /alex

          arostfx added a comment - Am I correct that this will only make the broken "links" disappear, but it will not solve the problem that reports disappear after a Hudson restart? Thanks, /alex

          mcrooney added a comment -

          arostfx, I'd be surprised if lkishalmi's commit affects this since you say the HTML logs still exist in those directories, but I'll see if I can attempt to reproduce this issue today and find out.

          mcrooney added a comment - arostfx, I'd be surprised if lkishalmi's commit affects this since you say the HTML logs still exist in those directories, but I'll see if I can attempt to reproduce this issue today and find out.

          istocia added a comment -

          Hello,

          I investigated this issue and coded some fix (please see attached file: JENKINS-5775.patch)
          Could you please take a look at it and work on official patch (file that need to be updated: HtmlPublisherTarget.java)?

          What was wrong?
          1) It was attempt to retrieve configuration from outer class
          2) But after restart of the hudson value of outer class was null (NPE was thrown)

          How is it changed in my fix?
          1) Passing instance of HtmlPublisherTarget to BaseHTMLAction and use it in methods

          Thanks,
          Pawel

          istocia added a comment - Hello, I investigated this issue and coded some fix (please see attached file: JENKINS-5775 .patch) Could you please take a look at it and work on official patch (file that need to be updated: HtmlPublisherTarget.java)? What was wrong? 1) It was attempt to retrieve configuration from outer class 2) But after restart of the hudson value of outer class was null (NPE was thrown) How is it changed in my fix? 1) Passing instance of HtmlPublisherTarget to BaseHTMLAction and use it in methods Thanks, Pawel
          istocia made changes -
          Attachment New: JENKINS-5775.patch [ 19386 ]

            mcrooney mcrooney
            balajirangarajan balajirangarajan
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: