Class SshTask
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<SshTask,SshTaskProperties>
com.atlassian.bamboo.specs.builders.task.SshTask
Represents a task to run a remote command over SSH.
-
Field Summary
FieldsFields inherited from class com.atlassian.bamboo.specs.builders.task.BaseSshTask
authenticationType, hostFingerprint, hosts, key, passphrase, password, port, sharedCredentials, usernameFields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull SshTaskPropertiesbuild()Shell command to execute on the remote host.booleaninthashCode()keepAliveInterval(Duration keepAliveInterval) Sets the SSH keep alive interval.keepAliveIntervalInSeconds(int keepAliveIntervalSeconds) Sets the SSH keep alive interval in seconds.Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseSshTask
authenticateWithKey, authenticateWithKey, authenticateWithKeyWithPassphrase, authenticateWithKeyWithPassphrase, authenticateWithPassword, authenticateWithSshSharedCredentials, authenticateWithUsernamePasswordSharedCredentials, host, host, hostFingerprint, port, portDefault, usernameMethods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Field Details
-
keepAliveInterval
-
-
Constructor Details
-
SshTask
public SshTask()
-
-
Method Details
-
command
Shell command to execute on the remote host. -
command
-
keepAliveInterval
Sets the SSH keep alive interval. -
keepAliveIntervalInSeconds
Sets the SSH keep alive interval in seconds. -
build
- Specified by:
buildin classTask<SshTask,SshTaskProperties>
-
equals
- Overrides:
equalsin classBaseSshTask<SshTask,SshTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseSshTask<SshTask,SshTaskProperties>
-