From 5d81c4c47a769b3b03216668d77be59f441668fa Mon Sep 17 00:00:00 2001 From: Matt Thalman Date: Mon, 15 Jul 2024 13:47:08 -0500 Subject: [PATCH] Copy artifacts to publishing directory (#20003) --- eng/pipelines/templates/jobs/vmr-build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/templates/jobs/vmr-build.yml b/eng/pipelines/templates/jobs/vmr-build.yml index 542320fd7..bc9bc3af1 100644 --- a/eng/pipelines/templates/jobs/vmr-build.yml +++ b/eng/pipelines/templates/jobs/vmr-build.yml @@ -100,7 +100,7 @@ jobs: - output: pipelineArtifact displayName: 'Publish Artifacts' condition: succeededOrFailed() - targetPath: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/' + targetPath: $(Build.ArtifactStagingDirectory)/publishing artifactName: $(Agent.JobName)_Artifacts steps: @@ -267,6 +267,13 @@ jobs: continueOnError: true condition: succeededOrFailed() + - task: CopyFiles@2 + inputs: + SourceFolder: ${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/ + TargetFolder: $(Build.ArtifactStagingDirectory)/publishing + displayName: Copy artifacts to Artifact Staging Directory + condition: succeededOrFailed() + - ${{ if eq(variables['System.TeamProject'], 'public') }}: - publish: '$(Build.StagingDirectory)/BuildLogs' artifact: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt) @@ -274,7 +281,7 @@ jobs: continueOnError: true condition: succeededOrFailed() - - publish: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/' + - publish: $(Build.ArtifactStagingDirectory)/publishing artifact: $(Agent.JobName)_Artifacts displayName: Publish Artifacts condition: succeededOrFailed()