From 135a64955c7863ef6c33cdbd14a6da51461175d0 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 21 Nov 2019 14:52:29 -0800 Subject: [PATCH] ci: handle network drive not being available (#21247) Fixes 'The system cannot find the path specified' error when trying to save source to shared network drive. --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index de1aaba96028..17d238ce6725 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -96,7 +96,9 @@ build_script: if ($env:TARGET_ARCH -ne 'ia32') { # archive current source for future use # only run on x64/woa to avoid contention saving - 7z a $zipfile src -xr!android_webview -xr!electron -xr'!*\.git' -xr!third_party\WebKit\LayoutTests! -xr!third_party\blink\web_tests -xr!third_party\blink\perf_tests -slp -t7z -mmt=30 + if ($(7z a $zipfile src -xr!android_webview -xr!electron -xr'!*\.git' -xr!third_party\WebKit\LayoutTests! -xr!third_party\blink\web_tests -xr!third_party\blink\perf_tests -slp -t7z -mmt=30;$LASTEXITCODE -ne 0)) { + Write-warning "Could not save source to shared drive; continuing anyway" + } } } }