TFS automated testing-Adding a build definition will automatically copy all files under the project

Afon.zhang 396 Reputation points
2021-12-17T03:51:30.093+00:00

I am using TFS2015 to build automated tests recently, add a build definition in TFS resource management, and then add a build step

But I found that when I set the trigger to be continuous generation, the "get source" operation will be executed before the step I add to generate is executed.
I got a lot of items that I don’t want
For example: You need to select the repository (
There are many items under the repository) I only want to copy a certain item under the repository. Can I set it from where?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,800 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-12-17T03:55:45.693+00:00

    Devops / TFS is not currently supported here on Q&A. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/report?space=21&entry=problem
    https://developercommunity.visualstudio.com/report?space=22&entry=problem

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Afon.zhang 396 Reputation points
    2021-12-20T09:40:37.147+00:00

    Supplement: Solved it by yourself.
    Under the generation definition, under the repository tab, there is a mapping tab where you can set the file path to be copied. If you don’t specify it, then all files are copied. You only need to specify the project path you need.

    0 comments No comments