Answer the question
In order to leave comments, you need to log in
How to work with TFS test agents inside a build script?
Good afternoon.
I am working with TFS 2012, making a build script. The goal is simple: build the project, upload binaries from DropFolder to machines with test agents, run tests.
On MSDN, I read the advice to use xcopy, placed in the Run Deployment Task, but the script fails every other time (I didn’t get to the bottom of the reason).
You can, of course, use CopyDirectory, but you will have to enter the addresses of all machines with test agents into the process, share folders, which is not comme il faut.
As a result, several questions arise: how to work with TFS test agents inside a build script? What Activiy can use, variables? How else can you achieve sustainable data copying?
Answer the question
In order to leave comments, you need to log in
The problem with copying was due to a lack of rights for the agent process. Remember, if you set "Allow All" permissions for the "ALL" group, the user .\anyUser will not get any rights!
By and large, there are only two options on the Internet:
1. xcopy in the deployment task.
2. CopyDirectory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question