Download Build Artifacts task

Azure Pipelines

Use this task in a build or release pipeline to download build artifacts.

YAML snippet

# Download Build Artifacts
# Download Build Artifacts
- task: DownloadBuildArtifacts@0
    #buildType: 'current' # Options: current, specific
    #project: # Required when buildType == Specific
    #pipeline: # Required when buildType == Specific
    #specificBuildWithTriggering: false # Optional
    #buildVersionToDownload: 'latest' # Required when buildType == Specific# Options: latest, latestFromBranch, specific
    #allowPartiallySucceededBuilds: false # Optional
    #branchName: 'refs/heads/master' # Required when buildType == Specific && BuildVersionToDownload == LatestFromBranch
    #buildId: # Required when buildType == Specific && BuildVersionToDownload == Specific
    #tags: # Optional
    #downloadType: 'single' # Options: single, specific
    #artifactName: # Required when downloadType == Single
    #itemPattern: '**' # Optional
    #downloadPath: '$(System.ArtifactsDirectory)' 
    #parallelizationLimit: '8' # Optional


Download artifacts produced by(Required) Download artifacts produced by the current build, or from a specific build.
Project(Required) The project from which to download the build artifacts
Build pipeline(Required) Select the build pipeline name
When appropriate, download artifacts from the triggering build.(Optional) If checked, this build task will try to download artifacts from the triggering build. If there is no triggering build from the specified pipeline, it will download artifacts from the build specified in the options below.
Build version to download(Required) undefined
Branch name(Required) Specify to filter on branch/ref name, for example: refs/heads/develop.
Build(Required) The build from which to download the artifacts
Download type(Required) Download a specific artifact or specific files from the build.
Artifact name(Required) The name of the artifact to download
Matching pattern(Optional) Specify files to be downloaded as multi line minimatch pattern. More Information

The default pattern (**) will download all files across all artifacts in the build. To download all files within artifact drop use drop/**.

Destination directory(Required) Path on the agent machine where the artifacts will be downloaded
Parallelization limit(Optional) Number of files to download simultaneously
Control options

Open source

This task is open source on GitHub. Feedback and contributions are welcome.