mirror of
https://github.com/google/nomulus
synced 2026-07-15 20:42:58 +00:00
Error out if Gradle hashes don't match (#3154)
this seems like it's probably safer
This commit is contained in:
@@ -272,7 +272,8 @@ steps:
|
||||
remote_md5=$(gcloud storage hash -h gs://${gcs_loc}/${gradle_bin} | grep md5 | awk '{print $3}')
|
||||
if [[ ${local_md5} != ${remote_md5} ]]
|
||||
then
|
||||
echo "${gradle_bin} HAS CHANGED ON GRADLE WEBSITE, USING THE BINARY ON GCS."
|
||||
echo "ERROR: MD5 hash mismatch for ${gradle_bin}! Local (official): ${local_md5}, Remote (GCS cache): ${remote_md5}. Aborting build." >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
gcloud storage cp $gradle_bin gs://${gcs_loc}/
|
||||
|
||||
Reference in New Issue
Block a user