Class BaseSshTask<T extends BaseSshTask<T,E>,E extends BaseSshTaskProperties>
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,E>
com.atlassian.bamboo.specs.builders.task.BaseSshTask<T,E>
public abstract class BaseSshTask<T extends BaseSshTask<T,E>,E extends BaseSshTaskProperties>
extends Task<T,E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected BaseSshTaskProperties.AuthenticationType
protected @Nullable String
protected @Nullable String
protected @Nullable String
protected @Nullable String
protected int
protected @Nullable SharedCredentialsIdentifierProperties
protected String
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticateWithKey
(@NotNull String key) Authenticate with key (without passphrase).authenticateWithKey
(@NotNull Path keyPath) Authenticate with key (without passphrase).authenticateWithKeyWithPassphrase
(@NotNull String key, @NotNull String passphrase) Authenticate with key with passphrase.authenticateWithKeyWithPassphrase
(@NotNull Path keyPath, @NotNull String passphrase) Authenticate with key with passphrase.authenticateWithPassword
(@NotNull String password) Authenticate with password associated with usernameusername(String)
.authenticateWithSshSharedCredentials
(@NotNull SharedCredentialsIdentifier sharedCredentials) authenticateWithUsernamePasswordSharedCredentials
(@NotNull SharedCredentialsIdentifier sharedCredentials) boolean
int
hashCode()
Hostname or IP address of the remote host.Hostnames or IP addresses of the remote hosts.hostFingerprint
(@NotNull String hostFingerprint) Set public key fingerprint.port
(int port) Set the port number of the remote host that is used for the SSH connection.Set the port number of the remote host to the default value (22).Username you want to use to access the remote host.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
build, conditions, description, enabled, requirements, toString
-
Field Details
-
hosts
-
username
-
authenticationType
-
password
-
key
-
passphrase
-
hostFingerprint
-
port
protected int port
-
-
Constructor Details
-
BaseSshTask
public BaseSshTask()
-
-
Method Details
-
host
Hostname or IP address of the remote host. -
host
Hostnames or IP addresses of the remote hosts. -
username
Username you want to use to access the remote host. -
authenticateWithPassword
Authenticate with password associated with usernameusername(String)
. -
authenticateWithKeyWithPassphrase
public T authenticateWithKeyWithPassphrase(@NotNull @NotNull String key, @NotNull @NotNull String passphrase) Authenticate with key with passphrase.- Parameters:
key
- - SSH private keypassphrase
- - SSH passphrase
-
authenticateWithKeyWithPassphrase
public T authenticateWithKeyWithPassphrase(@NotNull @NotNull Path keyPath, @NotNull @NotNull String passphrase) Authenticate with key with passphrase.- Parameters:
keyPath
- - path to SSH private keypassphrase
- - SSH passphrase
-
authenticateWithKey
Authenticate with key (without passphrase).- Parameters:
key
- - SSH private key
-
authenticateWithKey
Authenticate with key (without passphrase).- Parameters:
keyPath
- - path to SSH private key
-
hostFingerprint
Set public key fingerprint. -
port
Set the port number of the remote host that is used for the SSH connection. The default value is 22.- See Also:
-
portDefault
Set the port number of the remote host to the default value (22).- See Also:
-
equals
- Overrides:
equals
in classTask<T extends BaseSshTask<T,
E>, E extends BaseSshTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<T extends BaseSshTask<T,
E>, E extends BaseSshTaskProperties>
-