fix unbound var error part 2

pull/12893/head
Sharif Elgamal 2021-11-08 14:49:52 -08:00
parent 3cb1f322a5
commit 390dff5fed
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@
set -eux -o pipefail
readonly bucket="minikube-builds"
readonly bucket_mirror="minikube/latest"
# Make sure the right golang version is installed based on Makefile
./hack/jenkins/installers/check_install_golang.sh /usr/local
@ -61,7 +60,6 @@ if (echo ${COMMIT} | grep -q dirty); then
fi
gsutil cp "gs://${bucket}/logs/index.html" \
"gs://${bucket}/logs/${ghprbPullId}/index.html"
@ -83,7 +81,9 @@ rm -rf out/buildroot
# -R: recursive. strangely, this is not the default for sync.
gsutil -m rsync -dJR out "gs://${bucket}/${ghprbPullId}"
if [[ "${ghprbPullId}" -eq master ]]; then
readonly bucket_mirror="minikube/latest"
readonly HEAD="master"
if [[ "${ghprbPullId}" -eq "${HEAD}" ]]; then
# Copy artifacts to known mirror location
gsutil cp -R "gs://${bucket}/${ghprbPullId}/minikube-*" "gs://${bucket_mirror}"
fi