From 2dc372a73e5c7597c62b040104652ee30b1d9687 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Wed, 11 Sep 2024 13:51:45 -0700 Subject: [PATCH] Archive drop folder and dont publish Symbol Folder --- eng/pipelines/steps/CopyAndPublishSymbols.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/eng/pipelines/steps/CopyAndPublishSymbols.yml b/eng/pipelines/steps/CopyAndPublishSymbols.yml index 521f89468..1788f9695 100644 --- a/eng/pipelines/steps/CopyAndPublishSymbols.yml +++ b/eng/pipelines/steps/CopyAndPublishSymbols.yml @@ -7,8 +7,8 @@ steps: - template: ../tasks/CopyFiles.yml parameters: displayName: 'Collect build symbols' - SourceFolder: '$(Build.SourcesDirectory)' - Contents: '$(Build.SourcesDirectory)\bin\**\*.+(pdb|exe|dll)' + SourceFolder: '$(Build.StagingDirectory)\drop' + Contents: '$(Build.StagingDirectory)\drop\**\*.+(pdb|exe|dll)' TargetFolder: '$(Build.ArtifactStagingDirectory)/symbols' CleanTargetFolder: true @@ -19,16 +19,9 @@ steps: SymbolsFeatureName: MIEngine SymbolsProject: VS SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\' - ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\bin\Debug;$(Build.ArtifactStagingDirectory)\Symbols\bin\Lab.Debug' + ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\Debug;$(Build.ArtifactStagingDirectory)\Symbols\Lab.Debug' ${{ if parameters.OneESPT }}: ExpirationInDays: 3650 # Expire in 10 years for release builds ${{ else }}: ExpirationInDays: 1 # Expire in 1 day if used for testing - -- template: ../tasks/1ES/PublishPipelineArtifact.yml - parameters: - displayName: 'Publish Symbols Artifact' - targetPath: '$(Build.ArtifactStagingDirectory)/symbols' - artifactName: 'Symbols' - OneESPT: ${{ parameters.OneESPT }} ... \ No newline at end of file