From 33d16ade386a09184740bc7c46d41767b51dcffa Mon Sep 17 00:00:00 2001 From: "Matt Mitchell (.NET)" Date: Wed, 15 Jul 2026 11:04:34 -0700 Subject: [PATCH] Migrate perf artifact download steps to DownloadPipelineArtifact@2 DownloadBuildArtifacts@0 cannot read Pipeline Artifacts, whereas DownloadPipelineArtifact@2 downloads both Build and Pipeline Artifacts. Migrating the download side first unblocks dotnet/runtime moving its artifact publishing to Pipeline Artifacts, while remaining compatible with the current Build Artifact producers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a76ca5e8-9da2-412f-8f6f-5a61d5ba62f5 --- eng/pipelines/templates/download-artifact-step.yml | 6 ++---- .../templates/download-specific-artifact-step.yml | 9 ++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/eng/pipelines/templates/download-artifact-step.yml b/eng/pipelines/templates/download-artifact-step.yml index 2470db19de7..9cf4792855e 100644 --- a/eng/pipelines/templates/download-artifact-step.yml +++ b/eng/pipelines/templates/download-artifact-step.yml @@ -7,14 +7,12 @@ parameters: steps: # Download artifact - - task: DownloadBuildArtifacts@0 + - task: DownloadPipelineArtifact@2 displayName: 'Download ${{ parameters.displayName }}' inputs: buildType: current - downloadType: single - downloadPath: '$(Build.SourcesDirectory)/__download__' artifactName: '${{ parameters.artifactName }}' - checkDownloadedFiles: true + targetPath: '$(Build.SourcesDirectory)/__download__/${{ parameters.artifactName }}' # Unzip artifact - task: ExtractFiles@1 diff --git a/eng/pipelines/templates/download-specific-artifact-step.yml b/eng/pipelines/templates/download-specific-artifact-step.yml index 9ccf241404a..7fadddf7212 100644 --- a/eng/pipelines/templates/download-specific-artifact-step.yml +++ b/eng/pipelines/templates/download-specific-artifact-step.yml @@ -11,18 +11,17 @@ parameters: steps: # Download artifact - - task: DownloadBuildArtifacts@0 + - task: DownloadPipelineArtifact@2 displayName: 'Download specific ${{ parameters.displayName }}' inputs: buildType: specific project: ${{ parameters.project }} - pipeline: ${{ parameters.pipeline }} + definition: ${{ parameters.pipeline }} buildVersionToDownload: specific branchName: ${{ parameters.branchName }} - buildId: ${{ parameters.buildId }} - downloadType: single - downloadPath: '$(Build.SourcesDirectory)/__download__' + pipelineId: ${{ parameters.buildId }} artifactName: '${{ parameters.artifactName }}' + targetPath: '$(Build.SourcesDirectory)/__download__/${{ parameters.artifactName }}' # Unzip artifact - task: ExtractFiles@1