Add debug printing to deploy-asm

This commit is contained in:
Daniel Donenfeld 2019-02-14 14:46:00 -08:00
parent f1120574e4
commit ea64dc5e45

View File

@ -44,20 +44,25 @@ function appveyorFinished {
return $false
}
Write-Host "[Appveyor] At Last Job: "
Write-Host $buildData
[datetime]$stop = ([datetime]::Now).AddMinutes($env:TIMEOUT_MINS)
do {
Write-Host "[Appveyor] Checking Build Jobs"
(Get-AppVeyorBuild).build.jobs | Where-Object {$_.jobId -ne $env:APPVEYOR_JOB_ID} | Foreach-Object `
-Begin { $anyFalse = $false } `
-Begin { $allSuccess = $true } `
-Process {
$job = $_
switch ($job.status) {
"failed" { throw "AppVeyor's Job ($($job.jobId)) failed." }
"success" { continue }
Default { $anyFalse = $true }
Default { $allSuccess = $false }
}
} `
-End { if (!$anyFalse) { return $true } }
-End { if ($allSuccess) { return $true } }
Start-sleep 5
} while (([datetime]::Now) -lt $stop)
@ -116,8 +121,13 @@ function collectAsm {
}
}
Write-Host "Starting asm deployment"
# Wait for all jobs
if(appveyorFinished) {
Write-Host "Appveyor Finished, collecting ASM"
# Collect ASM (currently from Appveyor only)
collectAsm
}