diff --git a/.azure-pipelines/templates/steps/artifact-download.yml b/.azure-pipelines/templates/steps/artifact-download.yml new file mode 100644 index 000000000..23eb32c74 --- /dev/null +++ b/.azure-pipelines/templates/steps/artifact-download.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2025 Sarah Vaupel +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +parameters: + - name: artifactName + type: string + +steps: + - task: DownloadPipelineArtifact@2 + displayName: Download artifacts from ${{parameters.artifactName}} + inputs: + source: 'current' + artifactName: '${{parameters.artifactName}}' + targetPath: '$(Build.Repository.LocalPath)' \ No newline at end of file diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 0bf1d1d16..f35e8fd98 100755 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -104,6 +104,10 @@ stages: cacheIdent: '${{service.name}}-dependencies' cacheKeys: '${{dependencyCache.key}}' cachePath: '${{dependencyCache.path}}' + - ${{ each dependency in service.dependsOn }}: + - template: .azure-pipelines/templates/steps/artifact-download.yaml + parameters: + artifactName: '${{dependency}}' - template: .azure-pipelines/templates/steps/make.yaml parameters: makeJob: compile @@ -117,7 +121,7 @@ stages: displayName: Publish ${{service.name}} build artifacts inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: '${{service.name}}' + ArtifactName: 'Build_${{service.name}}' publishLocation: 'Container' # - stage: Test