public class SSHConnector
extends hudson.slaves.ComputerConnector
ComputerConnector
for SSHLauncher
.
Significant code duplication between this and SSHLauncher
because of the historical reason.
Newer plugins like this should define a separate Describable connection parameter class and have
connector and launcher share them.Modifier and Type | Class and Description |
---|---|
static class |
SSHConnector.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
String |
javaPath
Field javaPath.
|
hudson.tools.JDKInstaller |
jdkInstaller
Field jdk
|
String |
jvmOptions
Field jvmOptions.
|
Integer |
launchTimeoutSeconds
Field launchTimeoutSeconds.
|
Integer |
maxNumRetries
Field maxNumRetries.
|
hudson.util.Secret |
password
Deprecated.
|
int |
port
Field port
|
String |
prefixStartSlaveCmd
Field prefixStartSlaveCmd.
|
String |
privatekey
Deprecated.
|
Integer |
retryWaitTime
Field retryWaitTime.
|
String |
suffixStartSlaveCmd
Field suffixStartSlaveCmd.
|
String |
username
Deprecated.
|
Constructor and Description |
---|
SSHConnector(int port,
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
SSHConnector(int port,
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
hudson.tools.JDKInstaller jdkInstaller,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
SSHConnector(int port,
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
hudson.tools.JDKInstaller jdkInstaller,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd,
Integer launchTimeoutSeconds,
Integer maxNumRetries,
Integer retryWaitTime) |
SSHConnector(int port,
String credentialsId,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd)
Deprecated.
Use
#(int,String,String,String,String,String,Integer) |
SSHConnector(int port,
String credentialsId,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd,
Integer launchTimeoutSeconds)
Deprecated.
|
SSHConnector(int port,
String credentialsId,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd,
Integer launchTimeoutSeconds,
Integer maxNumRetries,
Integer retryWaitTime) |
SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
hudson.tools.JDKInstaller jdkInstaller,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
Modifier and Type | Method and Description |
---|---|
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials() |
String |
getCredentialsId() |
SSHLauncher |
launch(String host,
hudson.model.TaskListener listener) |
public final int port
@Deprecated public transient String username
@Deprecated public transient hudson.util.Secret password
@Deprecated public transient String privatekey
public final String jvmOptions
public final String javaPath
public final hudson.tools.JDKInstaller jdkInstaller
public final String prefixStartSlaveCmd
public final String suffixStartSlaveCmd
public final Integer launchTimeoutSeconds
public final Integer maxNumRetries
public final Integer retryWaitTime
@DataBoundConstructor public SSHConnector(int port, String credentialsId, String jvmOptions, String javaPath, String prefixStartSlaveCmd, String suffixStartSlaveCmd, Integer launchTimeoutSeconds, Integer maxNumRetries, Integer retryWaitTime)
SSHLauncher#(String, int, StandardUsernameCredentials, String, String, String, String, String, Integer, Integer, Integer)
@Deprecated public SSHConnector(int port, String credentialsId, String jvmOptions, String javaPath, String prefixStartSlaveCmd, String suffixStartSlaveCmd, Integer launchTimeoutSeconds)
SSHLauncher#(String, int, StandardUsernameCredentials, String, String, String, String, String, Integer)
@Deprecated public SSHConnector(int port, String credentialsId, String jvmOptions, String javaPath, String prefixStartSlaveCmd, String suffixStartSlaveCmd)
#(int,String,String,String,String,String,Integer)
public SSHConnector(int port, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials, String jvmOptions, String javaPath, String prefixStartSlaveCmd, String suffixStartSlaveCmd)
public SSHConnector(int port, String username, String password, String privatekey, String jvmOptions, String javaPath, String prefixStartSlaveCmd, String suffixStartSlaveCmd)
public SSHConnector(int port, String username, String password, String privatekey, String jvmOptions, String javaPath, hudson.tools.JDKInstaller jdkInstaller, String prefixStartSlaveCmd, String suffixStartSlaveCmd)
public SSHConnector(int port, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials, String username, String password, String privatekey, String jvmOptions, String javaPath, hudson.tools.JDKInstaller jdkInstaller, String prefixStartSlaveCmd, String suffixStartSlaveCmd)
public SSHConnector(int port, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials, String username, String password, String privatekey, String jvmOptions, String javaPath, hudson.tools.JDKInstaller jdkInstaller, String prefixStartSlaveCmd, String suffixStartSlaveCmd, Integer launchTimeoutSeconds, Integer maxNumRetries, Integer retryWaitTime)
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials()
public String getCredentialsId()
public SSHLauncher launch(String host, hudson.model.TaskListener listener) throws IOException, InterruptedException
launch
in class hudson.slaves.ComputerConnector
IOException
InterruptedException
Copyright © 2016. All rights reserved.