From c783b5a4e41532c0dc18b8ae41fd20d61eb56d97 Mon Sep 17 00:00:00 2001 From: minnakt <47064971+minnakt@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:08:50 -0500 Subject: [PATCH] DEVPROD-787: Retry Node installation on CI (#2281) --- .evergreen.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.evergreen.yml b/.evergreen.yml index f9b89007c9..b58677eab8 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -109,7 +109,13 @@ functions: [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" cd - - nvm install --no-progress --default ${node_version} + # Retry the download for Node in case it flakes. + for i in {1..5}; do + nvm install --no-progress --default ${node_version} + [[ $? -eq 0 ]] && break + echo "Attempt $i of 5 to install Node failed" + sleep 10 + done npm install -g yarn run-make-background: