[wallaby only] Enable distro specific gating repo

In mixed os jobs gating repo is named
after distro, so need to enable them so
these jobs test patches under review.

These jobs run only for wallaby so update
is required only there.

Related-Bug: #2003865
Change-Id: I111af443220f519befa0669dfefe20b9c56fd37c
This commit is contained in:
yatinkarel 2023-01-25 19:16:16 +05:30
parent 05e2978334
commit 41c92c7895
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,8 @@ repo_cmd_before: |
sudo dnf clean all;
sudo dnf config-manager --disable "*" || true;
sudo dnf config-manager --enable gating-repo || true;
# Enable distro specific gating repo, it exists in mixed-os jobs
sudo dnf config-manager --enable gating-repo-{{ ansible_distribution_major_version }} || true;
if [ -e /etc/ci/mirror_info.sh ]; then
source /etc/ci/mirror_info.sh
else

View File

@ -94,6 +94,8 @@ repo_cmd_before: |
sudo sed -i -e "s/gating-repo-{{ release }}/gating-repo/" /etc/yum.repos.d/gating.repo || true;
sudo mv /etc/yum.repos.d/gating-repo-{{ release }}.repo /etc/yum.repos.d/gating-repo-{{ release }}.repo_previous || true;
sudo dnf config-manager --enable gating-repo || true;
# Enable distro specific gating repo, it exists in mixed-os jobs
sudo dnf config-manager --enable gating-repo-{{ ansible_distribution_major_version }} || true;
if [ -e /etc/ci/mirror_info.sh ]; then
source /etc/ci/mirror_info.sh
else