Skip to content

Commit

Permalink
Bugfix - latest build was not shown in graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercamp committed May 4, 2020
1 parent 700375b commit 83de8d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void doIndex(final StaplerRequest request, final StaplerResponse response
* such build
*/
public Run<?, ?> getLastFinishedBuild() {
Run<?, ?> lastBuild = run.getPreviousBuild();
Run<?, ?> lastBuild = run;
while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(CodeDxBuildAction.class) == null)) {
lastBuild = lastBuild.getPreviousBuild();
}
Expand Down

0 comments on commit 83de8d4

Please sign in to comment.