From e4b1e51a90534f8af23458a75b1c1cad9dd3ff6f Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Fri, 6 May 2022 22:17:43 -0600 Subject: [PATCH] more robust error logging Signed-off-by: Travis Glenn Hansen --- ci/bin/run.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/bin/run.ps1 b/ci/bin/run.ps1 index ca4e5ef..31adc78 100644 --- a/ci/bin/run.ps1 +++ b/ci/bin/run.ps1 @@ -77,7 +77,7 @@ $iter = 0 while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity_job.State -eq "NotStarted")) { $iter++ foreach ($job in Get-Job) { - if ($job -eq $csi_grpc_proxy_job -and $iter -gt 20) { + if (($job -eq $csi_grpc_proxy_job) -and ($iter -gt 20)) { continue } try { @@ -85,6 +85,9 @@ while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity } catch { if ($job.State -ne "Failed") { + Write-Output "failure receiving job data" + $job | ConvertTo-Json | Write-Output + Write-Output $_ throw $_ } }