public class SshTask extends BaseSshTask<SshTask,SshTaskProperties>
| Modifier and Type | Field and Description |
|---|---|
protected Duration |
keepAliveInterval |
authenticationType, host, hostFingerprint, key, passphrase, password, port, sharedCredentials, usernameconditions, description, requirements, taskEnabled| Constructor and Description |
|---|
SshTask() |
| Modifier and Type | Method and Description |
|---|---|
protected SshTaskProperties |
build() |
SshTask |
command(Path path) |
SshTask |
command(String command)
Shell command to execute on the remote host.
|
SshTask |
keepAliveInterval(Duration keepAliveInterval)
Sets the SSH keep alive interval.
|
SshTask |
keepAliveIntervalInSeconds(int keepAliveIntervalSeconds)
Sets the SSH keep alive interval in seconds.
|
authenticateWithKey, authenticateWithKey, authenticateWithKeyWithPassphrase, authenticateWithKeyWithPassphrase, authenticateWithPassword, authenticateWithSshSharedCredentials, authenticateWithUsernamePasswordSharedCredentials, host, hostFingerprint, port, portDefault, usernameconditions, description, enabled, requirements@Nullable protected Duration keepAliveInterval
public SshTask command(@NotNull String command)
public SshTask keepAliveInterval(Duration keepAliveInterval)
public SshTask keepAliveIntervalInSeconds(int keepAliveIntervalSeconds)
@NotNull protected SshTaskProperties build()
build in class Task<SshTask,SshTaskProperties>Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.