mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Windows service slave disconnection handling fix
See https://github.com/jenkinsci/jenkins/pull/315
This commit is contained in:
1 parent
b3f73fa287
commit
ed31f9d2b9
1 file changed
+1
-13
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user