From: Trevor Bramwell Date: Tue, 8 Feb 2022 15:26:21 +0000 (+0000) Subject: Merge "Support CentOS 7 in GoogleStorage Gitlab template" X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=219801fef20c8cd1838328bd6a3c557092754a7c;hp=28a3ae9fd59a1a9ad875280f440a73987480a0d9;p=releng.git Merge "Support CentOS 7 in GoogleStorage Gitlab template" --- diff --git a/gitlab-templates/GoogleStorage.gitlab-ci.yml b/gitlab-templates/GoogleStorage.gitlab-ci.yml index be941a81e..4ddf313d6 100644 --- a/gitlab-templates/GoogleStorage.gitlab-ci.yml +++ b/gitlab-templates/GoogleStorage.gitlab-ci.yml @@ -24,7 +24,12 @@ variables: .gsutil-install: &gsutil-install script: - - dnf -y install python3-pip + - | + if command -v dnf &> /dev/null; then + dnf -y install python3-pip + else + yum -y install python3-pip + fi - python3 -m pip install -U pip - python3 -m pip install gsutil - echo "$GSUTIL_CONFIG" > ~/.boto