mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
ci: ensure retry logic consistency (#226038)
Related PR: #171489 Signed-off-by: Kevin Cui <bh@bugs.cc>
This commit is contained in:
@@ -108,7 +108,7 @@ steps:
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
yarn --cwd build --frozen-lockfile --check-files && break
|
||||
if [ $i -eq 3 ]; then
|
||||
if [ $i -eq 5 ]; then
|
||||
echo "Yarn failed too many times" >&2
|
||||
exit 1
|
||||
fi
|
||||
@@ -139,7 +139,7 @@ steps:
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
yarn --frozen-lockfile --check-files && break
|
||||
if [ $i -eq 3 ]; then
|
||||
if [ $i -eq 5 ]; then
|
||||
echo "Yarn failed too many times" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user