2
votes

The first step in any vNext TFS build is a Get Sources step which is executing the tf get command.

I'd like to replicate this functionality in a different build step: I need to retrieve specific files/folders on a specific conditions.

In the XAML builds I was using the Download files build activity.

How can I achieve the same behavior without installing Visual Studio and TFS PowerTools and without installing TFS Nuget packages? Just with what is installed default by the build agent.

1
For future reference, Jesse Houwing has been working on TFVC tasks like "Download Files" within TFS/VSTS Build vNext: github.com/jessehouwing/vsts-tfvc-tasks/issues/…Peder Rice

1 Answers

0
votes
  1. You could run a PowerShell or a Cmd script step.

  2. If you require deeper integration with the build, consider creating your own custom build task that you'd then upload to your account. Tasks logic is in PowerShell or in JavaScript.

In the later case, check out https://github.com/Microsoft/vsts-tasks for more details.