Populate scenario properly in CI for N-2 upgrade job

After adding upgrade_yoga job, I have missed to adjust regexp to parse
SCENARIO properly. Due to that, infra jobs were attempting to
run aio_lxc upgrade job rather then just infra.

Change-Id: I7215b9c43ccd539f117787a510078368ba7034cf
This commit is contained in:
Dmitriy Rabotyagov 2023-05-17 16:22:04 +02:00 committed by Dmitriy Rabotyagov
parent dd776ccecd
commit 0e92e00777
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@
{% set _scenario = [] %}
{# Add the scenarios based on the job name #}
{# ex. openstack-ansible-deploy-$scenario1_$scenario2-$os #}
{% if zuul.job is match('^openstack-ansible-(deploy|upgrade)-([^-]+)-.*$') %}
{% if zuul.job is match('^openstack-ansible-(deploy|upgrade_?[a-z,0-9,.]*)-([^-]+)-.*$') %}
{% set _ = _scenario.extend(
(zuul.job |
regex_replace('^openstack-ansible-[a-z]*-([^-]+)-.*$', '\\1')).split('_')
regex_replace('^openstack-ansible-[a-z,0-9,.,_]*-([^-]+)-.*$', '\\1')).split('_')
)
%}
{# If testing a role, add the role service name to the scenario list #}