mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: fail installing Helm if wget
is unavailable
In case `wget` is not installed, downloading the Helm release will fail. The `install-helm.sh` script won't return a fatal error in that case, and CI jobs continue running in an environment that is not ready. By adding a check that exist the script with a failure, the CI will now correctly report a problem when Helm can not be downloaded. See-also: #3430 Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
8f915576c4
commit
fa97875dc9
@ -136,7 +136,7 @@ install() {
|
|||||||
mkdir -p ${TEMP}
|
mkdir -p ${TEMP}
|
||||||
# shellcheck disable=SC2021
|
# shellcheck disable=SC2021
|
||||||
dist=$(echo "${dist}" | tr "[A-Z]" "[a-z]")
|
dist=$(echo "${dist}" | tr "[A-Z]" "[a-z]")
|
||||||
wget "https://get.helm.sh/helm-${HELM_VERSION}-${dist}-${arch}.tar.gz" -O "${TEMP}/helm.tar.gz"
|
wget "https://get.helm.sh/helm-${HELM_VERSION}-${dist}-${arch}.tar.gz" -O "${TEMP}/helm.tar.gz" || exit 1
|
||||||
tar -C "${TEMP}" -zxvf "${TEMP}/helm.tar.gz"
|
tar -C "${TEMP}" -zxvf "${TEMP}/helm.tar.gz"
|
||||||
fi
|
fi
|
||||||
echo "Helm install successful"
|
echo "Helm install successful"
|
||||||
|
Loading…
Reference in New Issue
Block a user