Download Build Artifacts task
Use this task in a build or release pipeline to download build artifacts.
# Download build artifacts # Download files that were saved as artifacts of a completed build - task: DownloadBuildArtifacts@0 inputs: #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' # Choose whether to download a single artifact or all artifacts of a specific build. Options: single, specific #artifactName: # Required when downloadType == Single #itemPattern: '**' # Optional #downloadPath: '$(System.ArtifactsDirectory)' #parallelizationLimit: '8' # Optional
|buildType||(Required) Download artifacts produced by the current build, or from a specific build.|
|project||(Required) The project from which to download the build artifacts|
|pipeline||(Required) Select the build pipeline name|
|specificBuildWithTriggering||(Optional) If true, 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.|
|BuildVersionToDownload||(Required) Specify which version of the build to download.
|allowPartiallySucceededBuilds||(Optional) If checked, this build task will try to download artifacts whether the build is succeeded or partially succeeded.|
|branchName||(Required) Specify to filter on branch/ref name, for example: |
|buildId||(Required) The build from which to download the artifacts|
|tags||(Optional) A comma-delimited list of tags. Only builds with these tags will be returned.|
|downloadType||(Required) Choose whether to download a single artifact or all artifacts of a specific build.|
|artifactName||(Required) The name of the artifact to download|
|itemPattern||(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 if the "Specific files" option is selected. To download all files within an artifact drop use
|downloadPath||(Required) Path on the agent machine where the artifacts will be downloaded|
|parallelizationLimit||(Optional) Number of files to download simultaneously|
This task is open source on GitHub. Feedback and contributions are welcome.