File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,20 @@ $MAX_FAILURES=20;
35
35
$x86_fails = 0 ;
36
36
$x64_fails = 0 ;
37
37
# There can be a race conditions we try to patch out the media failures one above
38
- while (! $px86.HasExited -or ! $px64.HasExited ){
38
+ while ($true ){
39
+ $retry = $false ;
39
40
if ($px86.HasExited -and $px86.ExitCode -ne 0 -and $x86_fails -lt $MAX_FAILURES ){
40
41
$x86_fails ++ ;
41
42
$px86 = RunBuild - build_args_add $build_args_add - version " x86" ;
43
+ $retry = $true ;
42
44
}
43
45
if ($px64.HasExited -and $px64.ExitCode -ne 0 -and $x64_fails -lt $MAX_FAILURES ){
44
46
$x64_fails ++ ;
45
47
$px64 = RunBuild - build_args_add $build_args_add - version " x64" ;
48
+ $retry = $true ;
49
+ }
50
+ if ($px64.HasExited -and $px86.HasExited -and ! $retry ){
51
+ break ;
46
52
}
47
53
Start-Sleep - s 15
48
54
}
You can’t perform that action at this time.
0 commit comments