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
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseSshTask
authenticationType, hostFingerprint, hosts, key, passphrase, password, port, sharedCredentials, username
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull SshTaskProperties
build()
Shell command to execute on the remote host.boolean
int
hashCode()
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, username
Methods 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:
build
in classTask<SshTask,
SshTaskProperties>
-
equals
- Overrides:
equals
in classBaseSshTask<SshTask,
SshTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseSshTask<SshTask,
SshTaskProperties>
-