From 073d2d18d2be186cbce4f47e2a05ea59c3f922ae Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: May 05 2021 10:23:20 +0000 Subject: repo-install-rpm: ensure zuul-built is defined before running the nested tasks Related to https://pagure.io/fedora-ci/general/issue/242 --- diff --git a/roles/repo-install-rpm/tasks/main.yaml b/roles/repo-install-rpm/tasks/main.yaml index 7c71b97..bfa584d 100644 --- a/roles/repo-install-rpm/tasks/main.yaml +++ b/roles/repo-install-rpm/tasks/main.yaml @@ -15,10 +15,17 @@ - item.name == 'repo' - item.change != zuul.change +- name: Check zuul-built has been setup + shell: "dnf repolist | grep zuul-built" + failed_when: false + register: zuulbuilt_test + - name: Install artifacts from zuul-built include_tasks: install_repo_packages.yaml vars: - repo_name: zuul-built + when: zuulbuilt_test.rc == 0 - name: Display installed packages from the command line shell: dnf list --installed | grep "@commandline" + failed_when: false