diff --git a/azure-pipelines/Publish-Legacy-Symbols.ps1 b/azure-pipelines/Prepare-Legacy-Symbols.ps1 similarity index 91% rename from azure-pipelines/Publish-Legacy-Symbols.ps1 rename to azure-pipelines/Prepare-Legacy-Symbols.ps1 index 5c4035a1..ae0bc40c 100644 --- a/azure-pipelines/Publish-Legacy-Symbols.ps1 +++ b/azure-pipelines/Prepare-Legacy-Symbols.ps1 @@ -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" diff --git a/azure-pipelines/build.yml b/azure-pipelines/build.yml index 16757b47..272fab2a 100644 --- a/azure-pipelines/build.yml +++ b/azure-pipelines/build.yml @@ -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. diff --git a/azure-pipelines/publish-symbols.yml b/azure-pipelines/publish-symbols.yml index ddf82352..9078ea25 100644 --- a/azure-pipelines/publish-symbols.yml +++ b/azure-pipelines/publish-symbols.yml @@ -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