Skip to content

Commit

Permalink
[FIX JENKINS-32281] Consider multiple reports per build
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Feb 3, 2016
1 parent 4a8d86a commit 014ee38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/htmlpublisher/HtmlPublisherTarget.java
Expand Up @@ -218,7 +218,11 @@ protected File dir() {
File javadocDir = getBuildArchiveDir(run);

if (javadocDir.exists()) {
actualBuildAction = run.getAction(HTMLBuildAction.class);
for (HTMLBuildAction a : run.getActions(HTMLBuildAction.class)) {
if (a.getHTMLTarget().getReportName().equals(getHTMLTarget().getReportName())) {
actualBuildAction = a;
}
}
return javadocDir;
}
}
Expand Down

0 comments on commit 014ee38

Please sign in to comment.