Skip to content

Commit

Permalink
Allow control of updating latest-build.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
spxtr committed Aug 4, 2016
1 parent 8770b2e commit c738c2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/push-ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,18 @@ KUBE_GCS_DELETE_EXISTING='n'
: ${KUBE_GCS_RELEASE_BUCKET:='kubernetes-release-dev'}
KUBE_GCS_RELEASE_PREFIX="ci/${LATEST}"
KUBE_GCS_PUBLISH_VERSION="${LATEST}"
: ${KUBE_GCS_UPDATE_LATEST:='y'}

source "${KUBE_ROOT}/build/common.sh"

MAX_ATTEMPTS=3
attempt=0
while [[ ${attempt} -lt ${MAX_ATTEMPTS} ]]; do
kube::release::gcs::release && kube::release::gcs::publish_ci && break || true
if [[ "${KUBE_GCS_UPDATE_LATEST}" =~ ^[yY]$ ]]; then
kube::release::gcs::release && kube::release::gcs::publish_ci && break || true
else
kube::release::gcs::release && break || true
fi
attempt=$((attempt + 1))
sleep 5
done
Expand Down

0 comments on commit c738c2d

Please sign in to comment.