diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 9778a37a5bd..4c7f0c73e8e 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -241,7 +241,7 @@ function copy-to-staging() { echo "${hash}" > "${tar}.sha1" gsutil -m -q -h "Cache-Control:private, max-age=0" cp "${tar}" "${tar}.sha1" "${staging_path}" - gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1 + gsutil -m acl ch -g all:R "${gs_url}" "${gs_url}.sha1" >/dev/null 2>&1 || true echo "+++ ${basename_tar} uploaded (sha1 = ${hash})" } @@ -338,7 +338,7 @@ function upload-tars() { # Ensure the buckets are created if ! gsutil ls "${staging_bucket}" >/dev/null; then echo "Creating ${staging_bucket}" - gsutil mb -l "${region}" "${staging_bucket}" + gsutil mb -l "${region}" -p "${PROJECT}" "${staging_bucket}" fi local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"