Create a conditional workflow based on environment variables defined in the configuration section of your pipelines YAML file. The step executes when the declared condition is met.
Example
pipelines:
- name: myPipelines
configuration:
environmentVariables:
readOnly:
new_env:
default: 1
allowCustom: true
steps:
- name: step1
type: Bash
configuration:
environmentVariables:
new_env:
default: 2
#allowCustom: true
condition: new_env == 2
execution:
onExecute:
- echo $new_env
- name: step2
type: Bash
configuration:
condition: new_env == 1
inputSteps:
- name: step1
execution:
onExecute:
- echo 'success'