Skip to content

Commit

Permalink
[FIXED JENKINS-20662] Establish relation to new build immediately.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Apr 15, 2014
1 parent dcfeaf3 commit e6e7526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java
Expand Up @@ -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);
Expand Down

0 comments on commit e6e7526

Please sign in to comment.