summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-29 00:49:35 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-29 00:49:35 +0000
commitc33da35ddf14f39d622df42e0a63581636aa391c (patch)
treec0b5a7251ec31cd626d6e7f6d2acd9c406c05b69 /azure-pipelines.yml
parentb6c04a7ad76b8693048355d0a258731e10f111fd (diff)
Fix broken retry logic
previous retry logic did not work https://dev.azure.com/rubylang/ruby/_build/results?buildId=266 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index fa3c27a211..d555b6b40f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -96,13 +96,11 @@ jobs:
steps:
# FIXME: Refactor this. Note that %errorlevel% does not work in for loop.
- script: |
- vcpkg --triplet x64-windows install %dependencies%
- if %errorlevel% == 0 (exit 0)
- sleep 4
- vcpkg --triplet x64-windows install %dependencies%
- if %errorlevel% == 0 (exit 0)
- sleep 25
- vcpkg --triplet x64-windows install %dependencies%
+ vcpkg --triplet x64-windows install %dependencies% || (
+ sleep 4 && vcpkg --triplet x64-windows install %dependencies%
+ ) || (
+ sleep 25 && vcpkg --triplet x64-windows install %dependencies%
+ )
env:
dependencies: openssl readline zlib
- checkout: self