Fix kubevirtci download url
When fetching kubevirtci over the old url we get a 404, so we change the
url to the one we get from the tags page. Also we add fail flag.
@@ -40,7 +40,7 @@ fi
if [[ "$download_cluster_up" == true ]]; then
echo "downloading cluster-up"
rm -rf cluster-up
- curl -L https://github.com/kubevirt/kubevirtci/archive/${kubevirtci_git_hash}/kubevirtci.tar.gz | tar xz kubevirtci-${kubevirtci_git_hash}/cluster-up --strip-component 1
+ curl --fail -L https://github.com/kubevirt/kubevirtci/archive/refs/tags/${kubevirtci_git_hash}.tar.gz | tar xz kubevirtci-${kubevirtci_git_hash}/cluster-up --strip-component 1
echo ${kubevirtci_git_hash} >${version_file}
new_sha=$(getClusterUpShasum)
