[前][次][番号順一覧][スレッド一覧]

ruby-changes:55160

From: k0kubun <ko1@a...>
Date: Fri, 29 Mar 2019 09:49:41 +0900 (JST)
Subject: [ruby-changes:55160] k0kubun:r67367 (trunk): Fix broken retry logic

k0kubun	2019-03-29 09:49:35 +0900 (Fri, 29 Mar 2019)

  New Revision: 67367

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67367

  Log:
    Fix broken retry logic
    
    previous retry logic did not work
    https://dev.azure.com/rubylang/ruby/_build/results?buildId=266

  Modified files:
    trunk/azure-pipelines.yml
Index: azure-pipelines.yml
===================================================================
--- azure-pipelines.yml	(revision 67366)
+++ azure-pipelines.yml	(revision 67367)
@@ -96,13 +96,11 @@ jobs: https://github.com/ruby/ruby/blob/trunk/azure-pipelines.yml#L96
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]