Commit c37c4ed7 authored by Jeff Grafton's avatar Jeff Grafton

Retry uploading/publishing CI builds to work around gsutil bug

parent 023e7eab
...@@ -32,5 +32,11 @@ KUBE_GCS_LATEST_CONTENTS=${LATEST} ...@@ -32,5 +32,11 @@ KUBE_GCS_LATEST_CONTENTS=${LATEST}
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "$KUBE_ROOT/build/common.sh" source "$KUBE_ROOT/build/common.sh"
kube::release::gcs::release MAX_ATTEMPTS=3
kube::release::gcs::publish_latest attempt=0
while [[ ${attempt} -lt ${MAX_ATTEMPTS} ]]; do
kube::release::gcs::release && kube::release::gcs::publish_latest && break || true
attempt=$((attempt + 1))
sleep 5
done
[[ ${attempt} -lt ${MAX_ATTEMPTS} ]] || exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment