Download Pipeline Artifact task

Use this task in a build or release pipeline to download pipeline artifacts from earlier stages in this pipeline, or from another pipeline.

YAML snippet

# Download Pipeline Artifact
# Download Pipeline Artifact
- task: DownloadPipelineArtifact@1
  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
    #branchName: 'refs/heads/master' # Required when buildType == Specific && BuildVersionToDownload == LatestFromBranch
    #buildId: # Required when buildType == Specific && BuildVersionToDownload == Specific
    #tags: # Optional
    #artifactName: # Optional
    #itemPattern: '**' # Optional
    #downloadPath: '$(System.ArtifactsDirectory)' 

Arguments

Argument Description
targetPath The target path where the contents of the pipeline artifact will be placed. See Artifacts in Azure Pipelines.
artifactName The name of the artifact that you want to download.
pipelineId The ID of the Pipeline to download from. For example: 1764
Control options

Open source

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