Skip to content

Support negative matches

Kamil Trzciński requested to merge support-negative-matches into master

What does this MR do?

This adds support in only/except:variables: support for != and !~ operators.

This is the most naive approach. For example:

($AA == "AAA") && ($BB == "CCC") && ($DD == "XXX")

except:
  variables:
    - $AA != "AAA"
    - $BB != "CCC"
    - $DD != "XXX"

related https://gitlab.com/gitlab-org/gitlab-ce/issues/61900

Does this MR meet the acceptance criteria?

Conformity

Edited by Kamil Trzciński

Merge request reports