Skip to content
Permalink
Browse files

[FIXED JENKINS-20662] Establish relation to new build immediately.

  • Loading branch information
daniel-beck committed Apr 15, 2014
1 parent dcfeaf3 commit e6e7526021bdc8e4975c816944b931dcc5f739c0
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java
@@ -183,6 +183,7 @@ public final synchronized RunT newBuild() throws IOException {
try {
RunT lastBuild = getBuildClass().getConstructor(asJob().getClass()).newInstance(asJob());
builds.put(lastBuild);
lastBuild.getPreviousBuild(); // JENKINS-20662: create connection to previous build
return lastBuild;
} catch (InstantiationException e) {
throw new Error(e);

0 comments on commit e6e7526

Please sign in to comment.
You can’t perform that action at this time.