提交 df3192a4 编写于 作者: K Kohsuke Kawaguchi

merged additional changes

......@@ -80,7 +80,7 @@ public class ExtensionList<T> extends AbstractList<T> {
private volatile List<ExtensionComponent<T>> extensions;
/**
* Place to store manually registered instances with the per-Jenkins scope.
* Place to store manually registered instances with the per-Hudson scope.
* {@link CopyOnWriteArrayList} is used here to support concurrent iterations and mutation.
*/
private final CopyOnWriteArrayList<ExtensionComponent<T>> legacyInstances;
......
......@@ -197,7 +197,6 @@ public class SlaveComputer extends Computer {
cl.preLaunch(SlaveComputer.this, taskListener);
launcher.launch(SlaveComputer.this, taskListener);
return null;
} catch (AbortException e) {
taskListener.error(e.getMessage());
throw e;
......@@ -216,6 +215,10 @@ public class SlaveComputer extends Computer {
cl.onLaunchFailure(SlaveComputer.this, taskListener);
}
}
if (channel==null)
throw new IOException("Slave failed to connect, even though the launcher didn't report it. See the log output for details.");
return null;
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册