ci: ignore pdb download failure (#30785)
This commit is contained in:
parent
ad776d6113
commit
e6802bf935
1 changed files with 11 additions and 5 deletions
|
@ -54,11 +54,17 @@ steps:
|
||||||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN)
|
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN)
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
$localArtifactPath = "$pwd\src\pdb.zip"
|
try {
|
||||||
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/pdb.zip"
|
$localArtifactPath = "$pwd\src\pdb.zip"
|
||||||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
|
$serverArtifactPath = "$env:APPVEYOR_URL/buildjobs/$env:APPVEYOR_JOB_ID/artifacts/pdb.zip"
|
||||||
cd src
|
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer $env:APPVEYOR_TOKEN" }
|
||||||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y pdb.zip
|
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'
|
displayName: 'Download pdb files for detailed stacktraces'
|
||||||
env:
|
env:
|
||||||
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN)
|
APPVEYOR_TOKEN: $(APPVEYOR_TOKEN)
|
||||||
|
|
Loading…
Reference in a new issue