Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
-
None
Description
Current Situation
- The Job Instruction in a workflow can be configured from the "Job Options" tab to "Fail on output to stderr".
Desired Behavior
- The Job Instruction should be added the option "Warn on output to stderr".
- If output in the stderr channel is detected then a warning is raised:
- a notification of type warning is created
- the job is considered being successfully executed
- Only one of the options to "Fail on output to stderr", to "Warn on output to stderr" or not to check the stderr channel can be selected from the GUI.
Test Instructions
- Configure a notification to use the type WARNING
- Configure a workflow shell job with the Job Option -> Warn on output to stderr = true
- Test 1 (core functionality)
- configure the Job Script to create the output to strerr
- e.g. Windows:
echo my_stderr 1>&2
- run workflow
- e.g. Windows:
- Expected result : a notification will be created with the Warn Message: Job reports output to stderr: my_stderr
- configure the Job Script to create the output to strerr
- Test 2
- configure multiple stderr outputs mixed with sleeps or stdout outputs
- e.g. Windows:
echo my_stderr_1 1>&2 ping -n 10 localhost echo my_stderr_2 1>&2 ping -n 10 localhost echo my_stderr_3 1>&2
- e.g. Windows:
- Expected result : only one notification should be created
- configure multiple stderr outputs mixed with sleeps or stdout outputs
- Test 3
- Configure a job that uses the different warning types (e.g. Warn on longer execution, Return code on Warning, Warn on output to stderr)
- Expected result : a separate notification should be created for each type of warning