Use re2 compatible regexes in branch matchers

Python regexes are deprecated in Zuul, so update the use of regexes
in branch matchers with re2-compatible syntax.
The commit also removes matches for branches that are EOL - all
branches until stable/rocky (including).

Change-Id: I43c696ef2029cbf351f902b293df05f296dbb2a2
This commit is contained in:
Martin Kopec
2023-09-20 09:30:05 +02:00
parent ff45be406a
commit 6f2c373492

View File

@@ -347,7 +347,9 @@
- job:
name: grenade-dsvm-neutron-forward
branches: ^(?!(stable/(ocata|pike|queens|rocky|stein|train))).*$
branches:
regex: ^stable/(stein|train)$
negate: true
parent: grenade-forward
- job:
@@ -393,7 +395,9 @@
# Along with grenade gate, this job runs on many other projects gate
# also and in this job definition, we control for everyone to run on SLURP
# release only.
branches: ^(?!master|stable/(pike|queens|rocky|stein|train|ussuri|victoria|wallaby|xena|zed)).*$
branches:
regex: ^master|stable/(stein|train|ussuri|victoria|wallaby|xena|zed)$
negate: true
vars:
# Move this forward when master changes to a new skip-level-allowed
# target release. Right now, this is wallaby because master is yoga.