From e647d4e2158b5f5031c0c11b8768e17f09a6dcf1 Mon Sep 17 00:00:00 2001 From: Pavlo Tkach <3469726+ptkach@users.noreply.github.com> Date: Mon, 6 Nov 2023 09:15:36 -0500 Subject: [PATCH] Add retry to cloud build node installation (#2210) --- release/builder/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release/builder/build.sh b/release/builder/build.sh index 2c4a019fc07..6b5ad07f7bb 100755 --- a/release/builder/build.sh +++ b/release/builder/build.sh @@ -35,7 +35,9 @@ apt-get install curl -y apt-get install npm -y npm cache clean -f npm install -g n -n 16.19.0 +# Retrying because fails are possible for node.js intallation. See - +# https://github.com/nodejs/build/issues/1993 +for i in {1..5}; do n 16.19.0 && break || sleep 15; done # Install gcloud # Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu apt-get install lsb-release -y