Class SshSlaveLauncher
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.po.ComputerLauncher
-
- org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
public class SshSlaveLauncher extends ComputerLauncher
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SshSlaveLauncher.KnownHostsFileKeyVerificationStrategy
static class
SshSlaveLauncher.ManuallyProvidedKeyVerificationStrategy
static class
SshSlaveLauncher.ManuallyTrustedKeyVerificationStrategy
static class
SshSlaveLauncher.NonVerifyingKeyVerificationStrategy
static class
SshSlaveLauncher.SshHostKeyVerificationStrategy
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
Fields Modifier and Type Field Description Control
credentialsId
Control
host
Control
hostKeyVerificationStrategy
Control
jvmOptions
Control
prefixCmd
Control
retries
Control
suffixCmd
Control
timeout
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description SshSlaveLauncher(PageObject context, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshCredentialDialog
addCredential()
SshSlaveLauncher
keyCredentials(String username, String key, String passphrase)
Add username/key based credentials to the configurationSshSlaveLauncher
port(int port)
SshSlaveLauncher
pwdCredentials(String username, String password)
Add username/password based credentials to the configurationSshSlaveLauncher
pwdCredentials(String username, String password, String id)
Add username/password and id based credentials to the configurationvoid
selectCredentials(String credentialsId)
Select the credentials to use by ID.void
setJavaPath(String jvmPath)
void
setSshHostKeyVerificationStrategy(Class<? extends SshSlaveLauncher.SshHostKeyVerificationStrategy> type)
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, self
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Field Detail
-
host
public final Control host
-
credentialsId
public final Control credentialsId
-
prefixCmd
public final Control prefixCmd
-
suffixCmd
public final Control suffixCmd
-
timeout
public final Control timeout
-
retries
public final Control retries
-
jvmOptions
public final Control jvmOptions
-
hostKeyVerificationStrategy
public final Control hostKeyVerificationStrategy
-
-
Constructor Detail
-
SshSlaveLauncher
public SshSlaveLauncher(PageObject context, String path)
-
-
Method Detail
-
addCredential
public SshCredentialDialog addCredential()
-
setJavaPath
public void setJavaPath(String jvmPath)
-
port
public SshSlaveLauncher port(int port)
-
pwdCredentials
public SshSlaveLauncher pwdCredentials(String username, String password)
Add username/password based credentials to the configuration- Parameters:
username
- to usepassword
- for the username- Returns:
- the SshSlaveLauncher to be configured
-
pwdCredentials
public SshSlaveLauncher pwdCredentials(String username, String password, String id)
Add username/password and id based credentials to the configuration- Parameters:
username
- to usepassword
- for the usernameid
- for unique identification- Returns:
- the SshSlaveLauncher to be configured
-
keyCredentials
public SshSlaveLauncher keyCredentials(String username, String key, @CheckForNull String passphrase)
Add username/key based credentials to the configuration- Parameters:
username
- to usekey
- for the private key to use- Returns:
- the SshSlaveLauncher to be configured
-
selectCredentials
public void selectCredentials(String credentialsId)
Select the credentials to use by ID. The credentials need to be created before this method is invoked, e.g. using the@WithCredentials
annotation.- Parameters:
credentialsId
- the ID of the credentials to use
-
setSshHostKeyVerificationStrategy
public void setSshHostKeyVerificationStrategy(Class<? extends SshSlaveLauncher.SshHostKeyVerificationStrategy> type)
-
-