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

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

      We have several build using cucumber that produces HTML files which we use the HTMLPublisher to get visible on the project page.

      The problem is that the project page always shows the last successful build, and not the last build if it failed.
      We have to go to the failed job, and click the link in the left margin.

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

          Related issue is JENKINS-5682.

          Tetiana Tvardovska added a comment - Related issue is JENKINS-5682 .

          Kyle Leinen added a comment -

          Any updates on this? I am very interested in getting this corrected or having a setting added to switch the behavior.

          Kyle Leinen added a comment - Any updates on this? I am very interested in getting this corrected or having a setting added to switch the behavior.

          Still the same problem. Can this be fixed? Will this be fixed?

          Janusz Leidgens added a comment - Still the same problem. Can this be fixed? Will this be fixed?

          I am also facing this "misbehavior". A fix would be nice.

          Michael Niestegge added a comment - I am also facing this "misbehavior". A fix would be nice.

          Oleg Nenashev added a comment -

          +1 for the fix, but it may be "as designed".

          Oleg Nenashev added a comment - +1 for the fix, but it may be "as designed".

          Daniel Beck added a comment -

          Seems consistent with 'Last Successful Artifacts' on the project page.

          Daniel Beck added a comment - Seems consistent with 'Last Successful Artifacts' on the project page.

          Code changed in jenkins
          User: Carsten Lenz
          Path:
          src/main/java/htmlpublisher/HtmlPublisherTarget.java
          src/main/resources/htmlpublisher/HtmlPublisher/config.jelly
          src/main/resources/htmlpublisher/HtmlPublisher/help.html
          src/test/groovy/htmlpublisher/HtmlPublisherTest.groovy
          http://jenkins-ci.org/commit/htmlpublisher-plugin/0e328854d2a625b550a5429b0e2c2233ffcd1d2c
          Log:
          Allow job level links to last instead of last successful build

          Contributes to JENKINS-24057
          Possibly fixes JENKINS-11689 and JENKINS-5682

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Carsten Lenz Path: src/main/java/htmlpublisher/HtmlPublisherTarget.java src/main/resources/htmlpublisher/HtmlPublisher/config.jelly src/main/resources/htmlpublisher/HtmlPublisher/help.html src/test/groovy/htmlpublisher/HtmlPublisherTest.groovy http://jenkins-ci.org/commit/htmlpublisher-plugin/0e328854d2a625b550a5429b0e2c2233ffcd1d2c Log: Allow job level links to last instead of last successful build Contributes to JENKINS-24057 Possibly fixes JENKINS-11689 and JENKINS-5682

          mcrooney added a comment -

          There's now a (non-default) option for this in htmlpublisher-1.4, please let me know if this addresses your issue!

          mcrooney added a comment - There's now a (non-default) option for this in htmlpublisher-1.4, please let me know if this addresses your issue!

          Oleg Nenashev added a comment -

          Thanks a lot, the fix looks good to me.

          Oleg Nenashev added a comment - Thanks a lot, the fix looks good to me.

            mcrooney mcrooney
            kenglxn kenglxn
            Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: