未验证 提交 f91571ca 编写于 作者: E Egor Bredikhin 提交者: GitHub

Update core/src/main/java/hudson/model/AbstractProject.java

Co-Authored-By: NAdrien Lecharpentier <adrien.lecharpentier@gmail.com>
上级 bfc9dad1
......@@ -561,7 +561,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
}
private R getSomeBuildWithExistingWorkspace() throws IOException, InterruptedException {
for (R b = getLastBuild(); b!=null; b=b.getPreviousBuild()) {
for (R b = getLastBuild(); b != null; b = b.getPreviousBuild()) {
FilePath ws = b.getWorkspace();
if (ws!=null && ws.exists()) return b;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册