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
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
Field Summary
Modifier and TypeFieldDescriptionfinal Control
final Control
final Control
final Control
final Control
final Control
final Control
final Control
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
-
Method Summary
Modifier and TypeMethodDescriptionkeyCredentials
(String username, String key, String passphrase) Add username/key based credentials to the configurationport
(int port) pwdCredentials
(String username, String password) Add username/password based credentials to the configurationpwdCredentials
(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, runThenHandleInputDialog, 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 Details
-
host
-
credentialsId
-
prefixCmd
-
suffixCmd
-
timeout
-
retries
-
jvmOptions
-
hostKeyVerificationStrategy
-
-
Constructor Details
-
SshSlaveLauncher
-
-
Method Details
-
addCredential
-
setJavaPath
-
port
-
pwdCredentials
Add username/password based credentials to the configuration- Parameters:
username
- to usepassword
- for the username- Returns:
- the SshSlaveLauncher to be configured
-
pwdCredentials
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
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)
-