Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
DEVPROD-787: Retry Node installation on CI (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
minnakt authored Mar 1, 2024
1 parent d61ec20 commit c783b5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c783b5a

Please sign in to comment.