Package org.jvnet.hudson.plugins
Class CredentialsSSHSite
java.lang.Object
org.jvnet.hudson.plugins.CredentialsSSHSite
- Direct Known Subclasses:
CredentialsSSHSite.LegacySSHSite
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
executeCommand
(PrintStream logger, String command) Deprecated.int
executeCommand
(PrintStream logger, String command, boolean execEachLine) int
getPort()
getPty()
Returns "identifier" for ssh site: username@hostname:portstatic CredentialsSSHSite
Migrates LegacySSHSite (plaintext login and pass) to CredentialsSSHSite (credentials in credentials plugin)
Returns the same instance when supplied with CredentialsSSHSitevoid
setCredentialId
(String credentialId) void
setHostname
(String hostname) void
void
void
setResolvedHostname
(String hostname) void
setServerAliveInterval
(String serverAliveInterval) void
setTimeout
(String timeout) void
testConnection
(PrintStream logger) toString()
-
Field Details
-
LOGGER
-
NO_REQUIREMENTS
public static final List<com.cloudbees.plugins.credentials.domains.DomainRequirement> NO_REQUIREMENTS
-
-
Constructor Details
-
CredentialsSSHSite
-
-
Method Details
-
migrateToCredentials
public static CredentialsSSHSite migrateToCredentials(CredentialsSSHSite site) throws InterruptedException, IOException Migrates LegacySSHSite (plaintext login and pass) to CredentialsSSHSite (credentials in credentials plugin)
Returns the same instance when supplied with CredentialsSSHSite- Throws:
InterruptedException
IOException
-
executeCommand
@Deprecated public int executeCommand(PrintStream logger, String command) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
executeCommand
public int executeCommand(PrintStream logger, String command, boolean execEachLine) throws InterruptedException - Throws:
InterruptedException
-
getCredentialId
-
getHostname
-
getIntegerPort
public int getIntegerPort() -
getPort
-
getPty
-
getServerAliveInterval
-
getSitename
Returns "identifier" for ssh site: username@hostname:port -
getTimeout
-
setCredentialId
-
setHostname
-
setPort
-
setPty
-
setResolvedHostname
-
setServerAliveInterval
-
setTimeout
-
testConnection
public void testConnection(PrintStream logger) throws com.jcraft.jsch.JSchException, IOException, InterruptedException - Throws:
com.jcraft.jsch.JSchException
IOException
InterruptedException
-
toString
-