Class JenkinsSshClient
- java.lang.Object
-
- jenkins.plugins.ssh2easy.gssh.client.AbstractSshClient
-
- jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient
-
- jenkins.plugins.ssh2easy.gssh.client.JenkinsSshClient
-
- All Implemented Interfaces:
SshClient
public class JenkinsSshClient extends DefaultSshClient
-
-
Field Summary
-
Fields inherited from class jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient
SSH_BEY
-
Fields inherited from class jenkins.plugins.ssh2easy.gssh.client.AbstractSshClient
LATEEST_EXEC_SHELL_DEBUG, TEMP_PATH
-
Fields inherited from interface jenkins.plugins.ssh2easy.gssh.client.SshClient
STATUS_FAILED, STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description JenkinsSshClient(String ip, int port, String username, String password)
JenkinsSshClient(ServerGroup serverGroup, String ip)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
executeCommand(PrintStream logger, String command)
com.trilead.ssh2.Connection
getConnection()
static SshClient
newInstance(String ip, int port, String username, String password)
static SshClient
newInstance(ServerGroup group, String ip)
-
Methods inherited from class jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient
createSession, downloadFile, executeShell, getIp, getPassword, getPort, getUsername, prepareUpload, setIp, setPassword, setPort, setUsername, testConnection, toString, uploadFile, wrapperInput
-
Methods inherited from class jenkins.plugins.ssh2easy.gssh.client.AbstractSshClient
chmod, chown, downloadFile, executeCommand, executeShellByFTP, executeShellByFTP, mv, rm_Rf, uploadFile, uploadFile
-
-
-
-
Constructor Detail
-
JenkinsSshClient
public JenkinsSshClient(ServerGroup serverGroup, String ip)
-
-
Method Detail
-
newInstance
public static SshClient newInstance(String ip, int port, String username, String password)
-
newInstance
public static SshClient newInstance(ServerGroup group, String ip)
-
getConnection
public com.trilead.ssh2.Connection getConnection() throws IOException
- Throws:
IOException
-
executeCommand
public int executeCommand(PrintStream logger, String command)
- Specified by:
executeCommand
in interfaceSshClient
- Overrides:
executeCommand
in classDefaultSshClient
-
-