public class SshTask extends BaseSshTask<SshTask,SshTaskProperties>
Modifier and Type | Field and Description |
---|---|
protected Duration |
keepAliveInterval |
authenticationType, host, hostFingerprint, key, passphrase, password, port, sharedCredentials, username
conditions, 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.
|
boolean |
equals(Object o) |
int |
hashCode() |
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, username
conditions, description, enabled, requirements, toString
@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>
public boolean equals(Object o)
equals
in class BaseSshTask<SshTask,SshTaskProperties>
public int hashCode()
hashCode
in class BaseSshTask<SshTask,SshTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.