From ae0f20c6bf45fdf4e50bc6cc69577cb94cc44ed8 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 21 Mar 2019 05:30:27 +0000 Subject: Retry vcpkg install failures git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- azure-pipelines.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'azure-pipelines.yml') 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: | -- cgit v1.2.3