From 7f5624662e69e749715878c4146eb32d36489805 Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Thu, 14 Feb 2019 15:25:20 -0800 Subject: [PATCH] Add even more logging --- asm/scripts/deploy-asm.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/asm/scripts/deploy-asm.ps1 b/asm/scripts/deploy-asm.ps1 index 5659011..0868acc 100644 --- a/asm/scripts/deploy-asm.ps1 +++ b/asm/scripts/deploy-asm.ps1 @@ -54,17 +54,21 @@ function appveyorFinished { do { Write-Host "[Appveyor] Checking Build Jobs" + $allSuccess = $true (Get-AppVeyorBuild).build.jobs | Where-Object {$_.jobId -ne $env:APPVEYOR_JOB_ID} | Foreach-Object ` - -Begin { $allSuccess = $true } ` - -Process { + { $job = $_ + Write-Host "[Appveyor] Checking Build Job $($job.jobId)" + Write-Host $job + Write-Host " " + switch ($job.status) { "failed" { throw "AppVeyor's Job ($($job.jobId)) failed." } "success" { continue } Default { Write-Host "Job status: $($job.status)"; Write-Host $job ;$allSuccess = $false } } - } ` - -End { if ($allSuccess) { return $true } } + } + if ($allSuccess) { return $true } Start-sleep 5 } while (([datetime]::Now) -lt $stop)