CI: Conjunction / Disjunction fails with "invalid expression syntax"
Summary
job:
only:
variables:
- $VARIABLE1 =~ /^content.*/ && $VARIABLE2 == "something"
script:
- echo
fails in CI lint with
Status: syntax is incorrect
Error: jobs:job:only variables invalid expression syntax
Expression was taken from https://docs.gitlab.com/ce/ci/variables/README.html#environment-variables-expressions item 7 in "Supported syntax".
Ditto for similar expressions using &&
or ||
Steps to reproduce
Insert script above in CI lint and validate it
What is the current bug behavior?
Error message when using such an expression.
What is the expected correct behavior?
Expression should be handled as defined.
Output of checks
happens on gitlab.com