ci(azure-pipelines): add more parameters to service dependencies; allow downloading dependencies from previous runs

This commit is contained in:
Sarah Vaupel 2025-01-27 17:35:46 +01:00
parent 204d57cb96
commit 422f6bc5b5
2 changed files with 11 additions and 2 deletions

View File

@ -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:

View File

@ -31,6 +31,8 @@ parameters:
timeout: 1440
dependencies:
- name: frontend
source: current
version: 'latest'
artifact: frontend
patterns: '**/*'
artifacts: |