From 204a241d34b5303bbd18a80dcc26b3320e6a5f08 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Wed, 8 Jan 2020 16:00:39 -0300 Subject: [PATCH] Updates deploy.bat to try harder when upload to server fails. --- .ci/deploy.bat | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.ci/deploy.bat b/.ci/deploy.bat index 120e84939..878f4d696 100644 --- a/.ci/deploy.bat +++ b/.ci/deploy.bat @@ -4,5 +4,13 @@ cd .. set TIMEX=%TIME: =0% set archive=qb64_%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIMEX:~0,2%-%TIMEX:~3,2%-%TIMEX:~6,2%_%GITHUB_SHA:~0,7%_win-%PLATFORM%.7z 7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64 -scp %archive% remote-server:autobuilds/development/ + +FOR /L %%i IN (1,1,10) DO ( + scp %archive% remote-server:autobuilds/development/ + IF ERRORLEVEL 1 ( + ECHO scp failed - attempt %%i/10 + ) ELSE ( + EXIT /B 0 + ) +)