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.
This commit is contained in:
Shelley Vohr 2019-11-21 14:52:29 -08:00 committed by Samuel Attard
parent 0cadf2846b
commit 135a64955c

View file

@ -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"
}
}
}
}