From 2be4e5af4757d4c46d9396b7c0ad562abab1d908 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 19 Feb 2024 15:56:39 +0100 Subject: [PATCH] ci(linux): install dependencies in build [skip ci] --- prepare_vscode.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/prepare_vscode.sh b/prepare_vscode.sh index 81b6b7e..6859bc3 100755 --- a/prepare_vscode.sh +++ b/prepare_vscode.sh @@ -103,7 +103,16 @@ if [[ "${OS_NAME}" == "linux" ]]; then export VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME - export NPM_REGISTRY='https://registry.yarnpkg.com' + # export NPM_REGISTRY='https://registry.yarnpkg.com' + + for i in {1..5}; do # try 5 times + yarn --cwd build --frozen-lockfile --check-files && break + if [[ $i == 3 ]]; then + echo "Yarn failed too many times" >&2 + exit 1 + fi + echo "Yarn failed $i, trying again..." + done ./build/azure-pipelines/linux/install.sh