-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins Core 2.289.1-cb-5
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.