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

HTML Publisher does not use correct workspace when called in post/failure section

XMLWordPrintable

      I have a job that always runs with an @ appended to its workspace.

      When attempting to invoke publishHTML upon the failure of a build, the plugin attempts to use the base name for the workspace (ex: workspace) instead of the actual name (ex: workspace@2).

      I also have a groovy declarative script that invokes publishHTML as part of the main build process (not in a post section). This runs when the build is successful. When invoking publishHTML from there, the plugin manages to use the correct workspace. So the publisher plugin only misses the @2 when it's invoked from the post/failure section.

      Modifying reportDir does not help, as it already begins in the (wrong) workspace. I cannot think of any solution to this problem other than it must be a Jenkins bug.

            r2b2_nz Richard Bywater
            bullpuppy John
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: