exec¶
Execute a command.
Saturn sets the current working directory of the command to the checkout of a repository.
To define a script as part of a task, use the script action.
Parameters¶
args¶
Arguments to pass to the command.
| Name | Value |
|---|---|
| Type | array |
| Subtype | string |
| Required | No |
| Default | [] |
command¶
The command to execute.
The value can be an absolute path to a binary. If the path is relative, it is interpreted as relative to the Task file.
| Name | Value |
|---|---|
| Type | string |
| Required | Yes |
timeout¶
Timeout after which the subprocess is shut down. Waits two minutes by default.
The value is a Go duration string.
| Name | Value |
|---|---|
| Type | string |
| Required | No |
| Default | 2m |