From 9defac5b8cd12f9af6f1a7abe4d912bc46995e83 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 16 Oct 2019 13:32:36 +0000 Subject: [PATCH] ci: Skip all yum operations if SKIP_INSTALLDEPS is set This is used by our OpenShift Prow job; we use the cosa buildroot container: https://github.com/coreos/coreos-assembler/pull/730 And using `yum` at all means we can flake on fetching rpm metadata. --- ci/installdeps.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/installdeps.sh b/ci/installdeps.sh index 29bd4e41..4fc3280f 100755 --- a/ci/installdeps.sh +++ b/ci/installdeps.sh @@ -3,6 +3,14 @@ set -xeuo pipefail +# This is used by our OpenShift Prow job; we use the +# cosa buildroot container +# https://github.com/coreos/coreos-assembler/pull/730 +# And using `yum` at all means we can flake on fetching rpm metadata +if [ -n "${SKIP_INSTALLDEPS:-}" ]; then + exit 0 +fi + dn=$(dirname $0) . ${dn}/libpaprci/libbuild.sh