Dela via


DownloadBuildArtifacts@0 - Download build artifacts v0 task

Download Build Artifacts.

Inputs

buildType - Download artifacts produced by
string. Required. Allowed values: current (Current build), specific (Specific build). Default value: current.

Whether to download artifacts produced by the current build or from a specific build.


project - Project
string. Required when buildType == specific.

The project from which you want to download the build artifacts.


specificBuildWithTriggering - When appropriate, download artifacts from the triggering build.
boolean. Optional. Use when buildType == specific. Default value: false.

If true, this build task tries to download artifacts from the triggering build. If there is no triggering build from the specified pipeline, it downloads artifacts from the build specified in the options below.


buildId - Build
string. Required when buildType == specific.

The build you want to download the artifacts from.


downloadType - Download type
string. Required. Allowed values: single (Specific artifact), specific (Specific files). Default value: single.

Downloads a specific artifact or specific files from the build.


artifactName - Artifact name
string. Required when downloadType == single. Default value: drop.

The name of the artifact to download.


itemPattern - Matching pattern
string. Optional. Use when downloadType == specific. Default value: **.

Specifies the files to download as a multi-line minimatch pattern. For more information, see File matching patterns reference.

The default pattern \*\* downloads all files across all artifacts in the build if you choose the Specific files option. To download all the files within the artifact drop, use drop/**.


downloadPath - Destination directory
string. Required. Default value: $(System.ArtifactsDirectory).

The path on the agent machine where the artifacts are downloaded.


parallelizationLimit - Parallelization limit
string. Default value: 8.

The number of files to download simultaneously.


definition - Build definition
string. Required when buildType == specific.

Specifies the build definition name.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Utility