Regular Expressions 101

Community Patterns

basic gitlab rule for job to not be runned automaticaly for specific branch

0

Regular Expression
PCRE (PHP <7.3)

/
^master|release|tag\/.*$
/
gm

Description

rules:
        - if: '$CI_COMMIT_BRANCH !~ /^release|hotfix|$CI_DEFAULT_BRANCH\/.*$/'
          when: manual
          allow_failure: true
        - when: always
Submitted by Kramtoske - 2 years ago