Use a template output to publish the symbol-legacy artifact

This commit is contained in:
Matteo Prosperi 2024-10-11 14:05:29 -07:00
Родитель 818e927a90
Коммит 642fdb8e61
3 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -33,5 +33,3 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
Move-Item $legacyPdbPath $_ -Force
}
}
Write-Host "##vso[artifact.upload containerfolder=symbols-legacy;artifactname=symbols-legacy;]$ArtifactStagingFolder"

Просмотреть файл

@ -273,6 +273,15 @@ jobs:
- macOS
pool: ${{ parameters.windowsPool }} # Use Windows agent because PublishSymbols task requires it (https://github.com/microsoft/azure-pipelines-tasks/issues/13821).
condition: succeededOrFailed()
${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
templateContext:
outputParentDirectory: $(Build.ArtifactStagingDirectory)
outputs:
- output: pipelineArtifact
displayName: 📢 Publish symbols-legacy
targetPath: $(Build.ArtifactStagingDirectory)/symbols-legacy
artifactName: symbols-legacy
condition: succeededOrFailed()
steps:
- checkout: self
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.

Просмотреть файл

@ -63,5 +63,5 @@ steps:
SymbolServerType: TeamServices
displayName: 📢 Publish test symbols
- powershell: azure-pipelines/Publish-Legacy-Symbols.ps1 -Path $(Pipeline.Workspace)/symbols/Windows
displayName: 📢 Publish symbols for symbol archival
- powershell: azure-pipelines/Prepare-Legacy-Symbols.ps1 -Path $(Pipeline.Workspace)/symbols/Windows
displayName: ⚙ Prepare symbols for symbol archival