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
This commit is contained in:
k0kubun 2019-03-29 00:49:35 +00:00
parent b6c04a7ad7
commit c33da35ddf
1 changed files with 5 additions and 7 deletions

View File

@ -96,13 +96,11 @@ jobs:
steps: steps:
# FIXME: Refactor this. Note that %errorlevel% does not work in for loop. # FIXME: Refactor this. Note that %errorlevel% does not work in for loop.
- script: | - script: |
vcpkg --triplet x64-windows install %dependencies% vcpkg --triplet x64-windows install %dependencies% || (
if %errorlevel% == 0 (exit 0) sleep 4 && vcpkg --triplet x64-windows install %dependencies%
sleep 4 ) || (
vcpkg --triplet x64-windows install %dependencies% sleep 25 && vcpkg --triplet x64-windows install %dependencies%
if %errorlevel% == 0 (exit 0) )
sleep 25
vcpkg --triplet x64-windows install %dependencies%
env: env:
dependencies: openssl readline zlib dependencies: openssl readline zlib
- checkout: self - checkout: self