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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Controlfinal Controlfinal Controlfinal Controlfinal Controlfinal Controlfinal Controlfinal ControlFields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, timeFields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by -
Constructor Summary
Constructors -
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 configurationvoidselectCredentials(String credentialsId) Select the credentials to use by ID.voidsetJavaPath(String jvmPath) voidsetSshHostKeyVerificationStrategy(Class<? extends SshSlaveLauncher.SshHostKeyVerificationStrategy> type) Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, selfMethods 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, runThenHandleUserPrompt, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCondMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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@WithCredentialsannotation.- Parameters:
credentialsId- the ID of the credentials to use
-
setSshHostKeyVerificationStrategy
public void setSshHostKeyVerificationStrategy(Class<? extends SshSlaveLauncher.SshHostKeyVerificationStrategy> type)
-