Share via


Jenkins Download Artifacts task

TFS 2017

Use this task to download artifacts produced by a Jenkins job.

Note

In Microsoft Team Foundation Server (TFS) 2018 and previous versions, build and release pipelines are called definitions, runs are called builds, service connections are called service endpoints, stages are called environments, and jobs are called phases.

Arguments

ArgumentDescription
Jenkins service connection(Required) Select the service connection for your Jenkins instance. To create one, click the Manage link and create a new Jenkins service connection.
Job name(Required) The name of the Jenkins job to download artifacts from. This must exactly match the job name on the Jenkins server.
Jenkins job type(Optional) Jenkins job type, detected automatically.
Save to(Required) Jenkins artifacts will be downloaded and saved to this directory. This directory will be created if it does not exist.
Download artifacts produced by(Required) Download artifacts produced by the last successful build, or from a specific build instance.
Jenkins build number(Required) Download artifacts produced by this build.
Item Pattern(Optional) Specify files to be downloaded as multi line minimatch pattern. More Information

The default pattern () will download all files across all artifacts produced by the Jenkins job. To download all files within artifact drop use drop/.

Download Commits and WorkItems(Optional) Enables downloading the commits and workitem details associated with the Jenkins Job
Download commits and workitems from(Optional) Optional start build number for downloading commits and work items. If provided, all commits and work items between start build number and build number given as input to download artifacts will be downloaded.
Commit and WorkItem FileName(Optional) Optional file name suffix for commits and workitem attachment. Attachment will be created with commits_{suffix}.json and workitem_{suffix}.json. If this input is not provided attachments will be create with the name commits.json and workitems.json
Artifacts are propagated to Azure(Optional) Check this if Jenkins artifacts were propagated to Azure. To upload Jenkins artifacts to azure, refer to this Jenkins plugin
Artifact Provider(Required) Choose the external storage provider used in Jenkins job to upload the artifacts.
Azure Subscription(Required) Choose the Azure Resource Manager subscription for the artifacts.
Storage Account Name(Required) Azure Classic and Resource Manager storage accounts are listed. Select the Storage account name in which the artifacts are propagated.
Container Name(Required) Name of the container in the storage account to which artifacts are uploaded.
Common Virtual Path(Optional) Path to the artifacts inside the Azure storage container.

Task control options

Open source

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