summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-21 05:30:27 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-21 05:30:27 +0000
commitae0f20c6bf45fdf4e50bc6cc69577cb94cc44ed8 (patch)
treeb86b38897999d5e2e28f856df6da7ec04a8edc1b /azure-pipelines.yml
parent9810c08a5dd0f327f3d2fe2bd61874673ddece11 (diff)
Retry vcpkg install failures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index e8167807a9..f05cc5e0f1 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -96,7 +96,17 @@ jobs:
# bundler:
# task: test-bundler
steps:
- - script: vcpkg --triplet x64-windows install openssl readline zlib
+ # 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%
+ env:
+ dependencies: openssl readline zlib
- checkout: self
fetchDepth: 10
- script: |