mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix powershell issue with Foreach-Object
This commit is contained in:
parent
06675302a0
commit
f1120574e4
@ -47,16 +47,16 @@ function appveyorFinished {
|
|||||||
[datetime]$stop = ([datetime]::Now).AddMinutes($env:TIMEOUT_MINS)
|
[datetime]$stop = ([datetime]::Now).AddMinutes($env:TIMEOUT_MINS)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
(Get-AppVeyorBuild).build.jobs | Where-Object {$_.jobId -ne $env:APPVEYOR_JOB_ID} | Foreach-Object
|
(Get-AppVeyorBuild).build.jobs | Where-Object {$_.jobId -ne $env:APPVEYOR_JOB_ID} | Foreach-Object `
|
||||||
-Begin { $anyFalse = $false }
|
-Begin { $anyFalse = $false } `
|
||||||
-Progress {
|
-Process {
|
||||||
$job = $_
|
$job = $_
|
||||||
switch ($job.status) {
|
switch ($job.status) {
|
||||||
"failed" { throw "AppVeyor's Job ($($job.jobId)) failed." }
|
"failed" { throw "AppVeyor's Job ($($job.jobId)) failed." }
|
||||||
"success" { continue }
|
"success" { continue }
|
||||||
Default { $anyFalse = $true }
|
Default { $anyFalse = $true }
|
||||||
}
|
}
|
||||||
}
|
} `
|
||||||
-End { if (!$anyFalse) { return $true } }
|
-End { if (!$anyFalse) { return $true } }
|
||||||
Start-sleep 5
|
Start-sleep 5
|
||||||
} while (([datetime]::Now) -lt $stop)
|
} while (([datetime]::Now) -lt $stop)
|
||||||
|
Loading…
Reference in New Issue
Block a user