提交 ec9b4f11 编写于 作者: J Jesse Glick

[FIXED JENKINS-18895] Refined fix once again.

上级 8d46aa6d
......@@ -194,13 +194,17 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
@Override
public Result getResult() {
if (isBuilding()) {
return super.getResult();
return computeResult();
}
synchronized (notifyModuleBuildLock) {
if (effectiveResult != null) {
return effectiveResult;
if (effectiveResult == null) {
effectiveResult = computeResult();
}
return effectiveResult;
}
}
private Result computeResult() {
Result r = super.getResult();
for (MavenBuild b : getModuleLastBuilds().values()) {
......@@ -215,11 +219,6 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
r = r.combine(br);
}
synchronized (notifyModuleBuildLock) {
if (effectiveResult == null) {
effectiveResult = r;
}
}
return r;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册