From f0fae9898bf9c51fb616e35b29bdd72b89c04ad5 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Wed, 22 Jul 2026 13:09:09 +0000 Subject: [PATCH] Fix GCS gradle hash verification in Cloud Build (#3174) --- release/cloudbuild-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/cloudbuild-release.yaml b/release/cloudbuild-release.yaml index cf69a18be..19da2c0cd 100644 --- a/release/cloudbuild-release.yaml +++ b/release/cloudbuild-release.yaml @@ -269,7 +269,7 @@ steps: if gcloud storage objects describe gs://${gcs_loc}/${gradle_bin} then local_md5=$(md5sum ${gradle_bin} | awk '{print $1}') - remote_md5=$(gcloud storage hash -h gs://${gcs_loc}/${gradle_bin} | grep md5 | awk '{print $3}') + remote_md5=$(gcloud storage hash --hex gs://${gcs_loc}/${gradle_bin} | grep md5 | awk '{print $2}') if [[ ${local_md5} != ${remote_md5} ]] then echo "ERROR: MD5 hash mismatch for ${gradle_bin}! Local (official): ${local_md5}, Remote (GCS cache): ${remote_md5}. Aborting build." >&2