mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add debug printing to deploy-asm
This commit is contained in:
parent
f1120574e4
commit
ea64dc5e45
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user