So I want to allow a job to fail only if a variable has a certain value. I’m setting using a script.
I’m using the following:
jobName: script: - export VAR_NAME=... [script here] rules: - if: 'VAR_NAME=="value"' allow_failure: true
The pipeline does not start, due to the following error:
jobs:jobName:rules:rule config contains unknown keys: allow_failure
When I check my .gitlab-ci.yml in CI Lint it says that the syntax is correct.
I’m running on self-managed gitlab server(GitLab Community Edition 12.10.3, gitlab-runner 12.10.2)
I checked the https://docs.gitlab.com/ee/ci/yaml/#rulesallow_failure docs without any success.
Any suggestions would be greatly appreciated.