Command task
A command task will execute the same command on several nodes concurrently.
This works with both Unix and Windows nodes.
You just have to check that the command line you enter is valid for the node.
For example:
echo "Hello!"on a Unix node (SSH server uses a POSIX compatible shell to execute the command)Write-Host 'Hello!'on a Windows node (SSH or WinRM server uses Powershell).
Task characteristics
In addition to the common task characteristics, here are those specific to command tasks.
Node Set filter
Filter (by names and tags) the nodes on which the command will be executed.
NB: This filter is combined with the filter applied at the project level.
Max. number of concurrent node executions
When a command is executed on several nodes, you can specify the maximum number of nodes to be processed concurrently.
Max. number of command execution retries
Maximum number of retry attempts if the command execution fails on a node. Defaults to 0 (no retry).
Delay between retries
Delay in seconds between retry attempts. Defaults to 0 (immediate retry).
Log output
Controls when node execution logs are retained:
- Always – logs are kept for every execution
- On failure or abort – logs are kept only when the execution fails or is aborted
- Never – logs are discarded