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

Windows service slave disconnection handling fix

See https://github.com/jenkinsci/jenkins/pull/315
上级 b3f73fa2
......@@ -33,22 +33,10 @@ public class ManagedWindowsServiceConnector extends ComputerConnector {
@Override
public ManagedWindowsServiceLauncher launch(final String hostName, TaskListener listener) throws IOException, InterruptedException {
return new ManagedWindowsServiceLauncher(userName,Secret.toString(password)) {
@Override
protected String determineHost(Computer c) throws IOException, InterruptedException {
return hostName;
}
@Override
public Descriptor<ComputerLauncher> getDescriptor() {
return Jenkins.getInstance().getDescriptor(ManagedWindowsServiceLauncher.class);
}
};
return new ManagedWindowsServiceLauncher(userName,Secret.toString(password),hostName);
}
@Extension
// Fix broken trunk (temporary)
// public static class DescriptorImpl extends Descriptor<ComputerLauncher> {
public static class DescriptorImpl extends ComputerConnectorDescriptor {
public String getDisplayName() {
return Messages.ManagedWindowsServiceLauncher_DisplayName();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册