Package org.jvnet.hudson.plugins
Class CredentialsSSHSite
java.lang.Object
org.jvnet.hudson.plugins.CredentialsSSHSite
- Direct Known Subclasses:
CredentialsSSHSite.LegacySSHSite
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexecuteCommand(PrintStream logger, String command) Deprecated.intexecuteCommand(PrintStream logger, String command, boolean execEachLine) intgetPort()getPty()Returns "identifier" for ssh site: username@hostname:portstatic CredentialsSSHSiteMigrates LegacySSHSite (plaintext login and pass) to CredentialsSSHSite (credentials in credentials plugin)
Returns the same instance when supplied with CredentialsSSHSitevoidsetCredentialId(String credentialId) voidsetHostname(String hostname) voidvoidvoidsetResolvedHostname(String hostname) voidsetServerAliveInterval(String serverAliveInterval) voidsetTimeout(String timeout) voidtestConnection(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:
InterruptedExceptionIOException
-
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.JSchExceptionIOExceptionInterruptedException
-
toString
-