From 5d8b7569ee9f3fa825878dfcf44ff0f92853e427 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Wed, 20 Sep 2023 09:15:39 +0200 Subject: [PATCH] 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 --- .zuul.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index e54c48a7..2c96f76c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -346,7 +346,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: @@ -419,4 +421,6 @@ # 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/(train|ussuri|victoria|wallaby|xena|zed)$ + negate: true