Skip to content

Commit 3bf9202

Browse files
authored
Download single artifact in PrepareArtifacts (#2134)
PrepareArtifacts downloads all artifacts from a given build job. This is causing the host to run out of space. Add an itemPattern to just download Private.SourceBuilt.Artifacts.
1 parent 3d8766b commit 3bf9202

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.vsts.pipelines/stages/prepare-artifacts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ stages:
4747
downloadType: single
4848
artifactName: ${{ coalesce(gather.artifactName, format('Tarball {0}', gather.job)) }}
4949
downloadPath: $(nonportableSourceBuiltStageDir)
50+
itemPattern: /*/Private.SourceBuilt.Artifacts.*.tar.gz
5051
allowPartiallySucceededBuilds: true
5152

5253
- task: DownloadBuildArtifacts@0
@@ -56,6 +57,7 @@ stages:
5657
downloadType: single
5758
artifactName: 'Tarball ${{ parameters.gatherPortableJob }}'
5859
downloadPath: $(portableSourceBuiltStageDir)
60+
itemPattern: /*/Private.SourceBuilt.Artifacts.*.tar.gz
5961
allowPartiallySucceededBuilds: true
6062

6163
- script: |

0 commit comments

Comments
 (0)