rules/when : Inconsistent handling if no default value
GitLab Community Edition 12.10.6
Summary
Hi, Maybe I have mis-read the doc, but it appears as a job that has if/when but no default when is not processed correctly.
Steps to reproduce
This job should run (as default value for when: is on_success)
always_run:
stage: install
rules:
- if: $XXX_UNSET_VARIABLE == "false"
when: never
script:
- 'echo "This job should always run"'
Should be equivalent to:
always_run:
stage: install
rules:
- if: $XXX_UNSET_VARIABLE == "false"
when: never
- when: on_success
script:
- 'echo "This job should always run"'
The job is skipped however.
Edited by Alan PINDER