From 422f6bc5b5074b54699e450dbefca70e1224360b Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 27 Jan 2025 17:35:46 +0100 Subject: [PATCH] ci(azure-pipelines): add more parameters to service dependencies; allow downloading dependencies from previous runs --- .azure-pipelines/templates/service.yaml | 11 +++++++++-- azure-pipelines.yaml | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/service.yaml b/.azure-pipelines/templates/service.yaml index bebfce62d..d7fec499c 100755 --- a/.azure-pipelines/templates/service.yaml +++ b/.azure-pipelines/templates/service.yaml @@ -113,9 +113,16 @@ stages: - task: DownloadPipelineArtifact@2 displayName: Download artifacts from ${{ dependency.name }} dependency inputs: - artifact: ${{ dependency.artifact }} + artifactName: ${{ dependency.artifact }} + source: ${{ dependency.source }} + project: $(Build.TriggeredBy.ProjectID) + pipeline: $(System.DefinitionId) + buildVersionToDownload: '${{ dependency.version }}' + tags: '${{ dependency.artifact }}' + allowPartiallySucceededBuilds: true + allowFailedBuilds: true patterns: '${{ dependency.patterns }}' - path: '$(Build.Repository.LocalPath)' + targetPath: '$(Build.Repository.LocalPath)' - ${{ each buildStep in parameters.buildSteps }}: - template: ./service/build-step.yaml parameters: diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 147261ddd..3a70f6c4e 100755 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -31,6 +31,8 @@ parameters: timeout: 1440 dependencies: - name: frontend + source: current + version: 'latest' artifact: frontend patterns: '**/*' artifacts: |