mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Retry uploading/publishing CI builds to work around gsutil bug
This commit is contained in:
parent
023e7eabb3
commit
c37c4ed73d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user