Skip to content

Commit 194b295

Browse files
authored
Merge pull request #296 from matteo-prosperi/dev/maprospe/symbol_legacy_output
Use a template output to publish the symbol-legacy artifact
2 parents 818e927 + 642fdb8 commit 194b295

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

azure-pipelines/Publish-Legacy-Symbols.ps1 renamed to azure-pipelines/Prepare-Legacy-Symbols.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
3333
Move-Item $legacyPdbPath $_ -Force
3434
}
3535
}
36-
37-
Write-Host "##vso[artifact.upload containerfolder=symbols-legacy;artifactname=symbols-legacy;]$ArtifactStagingFolder"

azure-pipelines/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ jobs:
273273
- macOS
274274
pool: ${{ parameters.windowsPool }} # Use Windows agent because PublishSymbols task requires it (https://github.com/microsoft/azure-pipelines-tasks/issues/13821).
275275
condition: succeededOrFailed()
276+
${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
277+
templateContext:
278+
outputParentDirectory: $(Build.ArtifactStagingDirectory)
279+
outputs:
280+
- output: pipelineArtifact
281+
displayName: 📢 Publish symbols-legacy
282+
targetPath: $(Build.ArtifactStagingDirectory)/symbols-legacy
283+
artifactName: symbols-legacy
284+
condition: succeededOrFailed()
276285
steps:
277286
- checkout: self
278287
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.

azure-pipelines/publish-symbols.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ steps:
6363
SymbolServerType: TeamServices
6464
displayName: 📢 Publish test symbols
6565

66-
- powershell: azure-pipelines/Publish-Legacy-Symbols.ps1 -Path $(Pipeline.Workspace)/symbols/Windows
67-
displayName: 📢 Publish symbols for symbol archival
66+
- powershell: azure-pipelines/Prepare-Legacy-Symbols.ps1 -Path $(Pipeline.Workspace)/symbols/Windows
67+
displayName: ⚙ Prepare symbols for symbol archival

0 commit comments

Comments
 (0)