From bdf156894af3238d0e2543c393f461ec5d8fa651 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 13:25:12 -0400 Subject: [PATCH] ci: ignore pdb download failure (#30795) Co-authored-by: John Kleinschmidt --- azure-pipelines-woa.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/azure-pipelines-woa.yml b/azure-pipelines-woa.yml index f58cf5d2152cd..62cf7232f8296 100644 --- a/azure-pipelines-woa.yml +++ b/azure-pipelines-woa.yml @@ -54,11 +54,17 @@ steps: APPVEYOR_TOKEN: $(APPVEYOR_TOKEN) - powershell: | - $localArtifactPath = "$pwd\src\pdb.zip" - $serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/pdb.zip" - Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } - cd src - & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y pdb.zip + try { + $localArtifactPath = "$pwd\src\pdb.zip" + $serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/pdb.zip" + Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" } + cd src + & "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y pdb.zip + } catch { + Write-Host "There was an exception encountered while downloading pdb files:" $_.Exception.Message + } finally { + $global:LASTEXITCODE = 0 + } displayName: 'Download pdb files for detailed stacktraces' env: APPVEYOR_TOKEN: $(APPVEYOR_TOKEN)