From c67c4926b3428f0bad7b631467576c98b3e7432d Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Wed, 23 Oct 2024 16:49:17 -0700 Subject: [PATCH] Fix symbol artifact output --- .../templates/stages/archetype-net-release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eng/pipelines/templates/stages/archetype-net-release.yml b/eng/pipelines/templates/stages/archetype-net-release.yml index 46464ec1c5ea8..06be144e9aa5a 100644 --- a/eng/pipelines/templates/stages/archetype-net-release.yml +++ b/eng/pipelines/templates/stages/archetype-net-release.yml @@ -132,11 +132,6 @@ stages: packageParentPath: '$(Pipeline.Workspace)' packagesToPush: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}/*.nupkg;!$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}/*.symbols.nupkg' publishVstsFeed: ${{ parameters.DevOpsFeedID }} - - ${{if ne(artifact.skipSymbolsUpload, 'true')}}: - - output: pipelineArtifact - displayName: 'Store converted symbols in ${{parameters.ArtifactName}}-windows-symbols artifact' - targetPath: $(Build.ArtifactStagingDirectory)/symbols - artifactName: ${{parameters.ArtifactName}}-windows-symbols strategy: runOnce: @@ -156,6 +151,14 @@ stages: image: azsdk-pool-mms-win-2022-1espt os: windows + templateContext: + outputs: + - ${{if ne(artifact.skipSymbolsUpload, 'true')}}: + - output: pipelineArtifact + displayName: 'Store converted symbols in ${{parameters.ArtifactName}}-symbols artifact' + targetPath: $(Build.ArtifactStagingDirectory)/symbols + artifactName: ${{parameters.ArtifactName}}-symbols + strategy: runOnce: deploy: