Skip to content

Commit

Permalink
Merge pull request #296 from matteo-prosperi/dev/maprospe/symbol_lega…
Browse files Browse the repository at this point in the history
…cy_output

Use a template output to publish the symbol-legacy artifact
  • Loading branch information
AArnott authored Oct 11, 2024
2 parents 818e927 + 642fdb8 commit 194b295
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
9 changes: 9 additions & 0 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines/publish-symbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 194b295

Please sign in to comment.