Example 1
Step1 is configured for success and step2 for failure. Step2 is allowed to run when step1 fails and the final status of the run is success.
pipelines:
- name: PIPE_9455_Workflow_03
steps:
- name: step1
type: Bash
execution:
onExecute:
- echo 'step1'
- name: step2
type: Bash
configuration:
allowFailure: true
inputSteps:
- name: step1
status:
- success
- error
- failure
- timeout
execution:
onExecute:
- echo 'success'
- exit 1Example 2
Step1 is configured for failure and step2 for success. Step2 is allowed to run when step1 fails and the final status of the run is success.
pipelines:
- name: PIPE_9455_Workflow_05
steps:
- name: step1
type: Bash
configuration:
allowFailure: true
execution:
onExecute:
- echo 'step1'
- exit 1
- name: step2
type: Bash
configuration:
inputSteps:
- name: step1
status:
- success
- error
- failure
- timeout
execution:
onExecute:
- echo 'success'Example 3
Step1 is configured for success and step2 for failure. When triggered, the final status of the run is failure.
pipelines:
- name: PIPE_9455_Workflow_03
steps:
- name: step1
type: Bash
configuration:
allowFailure: true
execution:
onExecute:
- echo 'step1'
- name: step2
type: Bash
configuration:
inputSteps:
- name: step1
status:
- success
- error
- failure
- timeout
execution:
onExecute:
- echo 'failure'
- exit 1