Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit f3ae7f1

Browse files
authored
ci: retry bazel fetch (#234)
1 parent 4ad8a33 commit f3ae7f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ci/kokoro/windows/build-bazel.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ $build_flags = @("--keep_going")
3838

3939
$env:BAZEL_VC="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
4040

41-
Write-Host -ForegroundColor Yellow "`n$(Get-Date -Format o) Downloading dependencies via Bazel"
42-
bazel $common_flags fetch -- //google/cloud/...:all
43-
if ($LastExitCode) {
44-
throw "bazel fetch failed with exit code $LastExitCode"
41+
1..3 | ForEach-Object {
42+
Write-Host -ForegroundColor Yellow "`n$(Get-Date -Format o) Fetch dependencies [$_]"
43+
bazel $common_flags fetch -- //google/cloud/...:all
44+
if ($LastExitCode -eq 0) {
45+
return
46+
}
4547
}
4648

4749
Write-Host -ForegroundColor Yellow "`n$(Get-Date -Format o) Compiling and running unit tests"

0 commit comments

Comments
 (0)