The documentation of the JobSchedulerSSHJob job is available in the scheduler installation sub-folder ./jobs.
The JobSchedulerSSHJob job knows some parameter to handle the stderr and the exit codeA number of parameters are available for handling stderr and exit code in the JobSchedulerSSHJob job. These are:
- ignore_stderr (default=false)
The job checks if any output to stderr has been created by a command that is being executed on the SSH server and reports this as an error. Should the value true be specified for this parameter then output to stderr will not be reported as an error by the JobScheduler.
...
- raise_exception_on_error (default=true)
If any output to stderr has been created or the exit code is unequal 0 then the job usually throws an exception. Whenever the job throws an exception then its task ends with the exit code 1. If the job is started by an order and an exception is thrown then the order goes to the error node of the job chain. Should this value false be specified, then it prevents an exception is thrown, the task has the exit code of the command that is being executed on the SSH server and an order goes to the next node of the job chain.
...