This extension “Chamindac.vsts.release.task.download-artifacts” for VSTS and TFS 2015.2.1 upwards, can be used to filter for build artifacts by name, and download only required artifact(s), to the release agent machine. The requirement for this extension is explained in post “Multiple Build Artifacts–TFS 2015/VSTS Builds”. Source code for this extension is available in Github.
Extension “Chamindac.vsts.release.task.download-artifacts” can be downloaded/installed from VSTS Marketplace. To install to VS Team Services click on install, or download for on-premise TFS 2015 (TFS 2015.2.1 upwards supported).
Once installed, in release definition tasks a new task will be available under Utilities.
Always add this task as first task of the release environment and make sure the environment is set to skip artifact download.
The tasks comes with default filled values to behave as normal Download artifacts.
Build artifact names should be specified in ; separated syntax. Or it can be a single artifact name. Or * for all Artifacts.
Artifact destination is set default to behave as similar to, out of the box, build artifact download.
This task will filter the build artifacts with given names and download only the specified ones.