Skip to content

Commit ad182d5

Browse files
committed
added download-artifacts template, modified publish artifacts, both now publish/download pipeline-artifacts
1 parent 269c830 commit ad182d5

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎.azure-pipelines/buildAndPackage.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ stages:
4747
jobs:
4848
- job: Maven-Preview
4949
steps:
50+
- template: templates/download-artifacts.yml
5051
- template: templates/maven-preview-stage/secure-files.yml
5152
- template: templates/maven-preview-stage/copy-and-build.yml
5253
- template: templates/alert-failure.yml
@@ -57,6 +58,7 @@ stages:
5758
jobs:
5859
- job: Maven-Release
5960
steps:
61+
- template: templates/download-artifacts.yml
6062
- template: templates/maven-release-stage/secure-files.yml
6163
- template: templates/maven-release-stage/copy-and-build.yml
6264
- template: templates/alert-failure.yml
@@ -67,5 +69,6 @@ stages:
6769
jobs:
6870
- job: Github-Release
6971
steps:
72+
- template: templates/download-artifacts.yml
7073
- template: templates/github-release-stage/version-and-release.yml
7174
- template: templates/alert-failure.yml

‎.azure-pipelines/templates/build-stage/publish-artefacts.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ steps:
1515
Scripts/**
1616
TargetFolder: '$(Build.ArtifactStagingDirectory)/'
1717

18-
- task: PublishBuildArtifacts@1
19-
displayName: 'Publish Artifact: drop'
18+
- task: PublishPipelineArtifact@1
2019
inputs:
21-
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
20+
targetPath: '$(Build.ArtifactStagingDirectory)'
21+
artifact: 'Drop'
22+
publishLocation: 'pipeline'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
steps:
2+
- task: DownloadPipelineArtifact@2
3+
inputs:
4+
buildType: 'current'
5+
artifactName: 'Drop'
6+
targetPath: '$(Pipeline.Workspace)'

0 commit comments

Comments
 (0)