From 96f735a2f523718211d1d353126feb8874b09b80 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 27 Jan 2025 02:08:19 +0100 Subject: [PATCH] ci(azure-pipelines): use DownloadPipelineArtifact task for more granular control --- .azure-pipelines/templates/service.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.azure-pipelines/templates/service.yaml b/.azure-pipelines/templates/service.yaml index 2e4a9a613..d764be972 100644 --- a/.azure-pipelines/templates/service.yaml +++ b/.azure-pipelines/templates/service.yaml @@ -110,14 +110,12 @@ stages: steps: - checkout: self - ${{ each dep in parameters.serviceDependencies }}: - - download: current + - task: DownloadPipelineArtifact@2 displayName: Download artifacts from ${{ dep }} dependency - artifact: ${{ dep }} - - task: CopyFiles@2 - displayName: Copy artifacts from ${{ dep }} dependency inputs: - Contents: '$(Agent.WorkFolder)/${{dep}}' - TargetFolder: '$(Build.Repository.LocalPath)' + artifact: ${{ dep }} + patterns: '**/*' + path: '$(Build.Repository.LocalPath)' - ${{ each buildStep in parameters.buildSteps }}: - template: ./service/build-step.yaml parameters: