From de0a8df4321d5405a72abce9d3a9c8eb954d3068 Mon Sep 17 00:00:00 2001 From: minnakt Date: Thu, 29 Feb 2024 11:38:02 -0500 Subject: [PATCH] DEVPROD-787: Retry Node installation --- .evergreen.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.evergreen.yml b/.evergreen.yml index f9b89007c9..df2b266651 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -109,7 +109,12 @@ 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 + sleep 10 + done npm install -g yarn run-make-background: