mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add even more logging
This commit is contained in:
parent
fceedfae2f
commit
7f5624662e
@ -54,17 +54,21 @@ function appveyorFinished {
|
|||||||
do {
|
do {
|
||||||
Write-Host "[Appveyor] Checking Build Jobs"
|
Write-Host "[Appveyor] Checking Build Jobs"
|
||||||
|
|
||||||
|
$allSuccess = $true
|
||||||
(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 { $allSuccess = $true } `
|
{
|
||||||
-Process {
|
|
||||||
$job = $_
|
$job = $_
|
||||||
|
Write-Host "[Appveyor] Checking Build Job $($job.jobId)"
|
||||||
|
Write-Host $job
|
||||||
|
Write-Host " "
|
||||||
|
|
||||||
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 { Write-Host "Job status: $($job.status)"; Write-Host $job ;$allSuccess = $false }
|
Default { Write-Host "Job status: $($job.status)"; Write-Host $job ;$allSuccess = $false }
|
||||||
}
|
}
|
||||||
} `
|
}
|
||||||
-End { if ($allSuccess) { return $true } }
|
if ($allSuccess) { 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