Class SshSlaveLauncher

All Implemented Interfaces:
CapybaraPortingLayer, Control.Owner, PageArea

public class SshSlaveLauncher extends ComputerLauncher
Author:
Kohsuke Kawaguchi
  • Field Details

    • 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 Details

  • Method Details

    • 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 use
      password - 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 use
      password - for the username
      id - 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 use
      key - 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)