diff options
Diffstat (limited to 'build/azure-pipelines/linux/scripts/install-remote-dependencies.sh')
-rwxr-xr-x | build/azure-pipelines/linux/scripts/install-remote-dependencies.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/azure-pipelines/linux/scripts/install-remote-dependencies.sh b/build/azure-pipelines/linux/scripts/install-remote-dependencies.sh index f849b3acef2..d2f62087661 100755 --- a/build/azure-pipelines/linux/scripts/install-remote-dependencies.sh +++ b/build/azure-pipelines/linux/scripts/install-remote-dependencies.sh @@ -2,4 +2,13 @@ set -e echo "Installing remote dependencies" -(cd remote && rm -rf node_modules && yarn --verbose) +(cd remote && rm -rf node_modules) + +for i in {1..3}; do # try 3 times, for Terrapin + yarn --cwd remote --frozen-lockfile --check-files && break + if [ $i -eq 3 ]; then + echo "Yarn failed too many times" >&2 + exit 1 + fi + echo "Yarn failed $i, trying again..." +done |