command_execution_result

Execute a command and create result conditions depending on its exit code.

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
commandCommand to run.

This parameter is required.
kept_codesList of codes that produce a kept status separated with commas (ex: 1,2,5).

This parameter is required.
repaired_codesList of codes that produce a repaired status separated with commas (ex: 3,4,6).

This parameter is required.

Example

method: command_execution_result
params:
  kept_codes: VALUE
  repaired_codes: VALUE
  command: VALUE

Documentation

Execute a command and create result conditions depending on the exit codes given in parameters. If an exit code is not in the list it will lead to an error status. If you want 0 to be a success you have to list it in the kept_codes list