O
O
Oxoron2014-12-02 16:06:46
Team Foundation Server
Oxoron, 2014-12-02 16:06:46

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

1 answer(s)
O
Oxoron, 2014-12-18
@Oxoron

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 question

Ask a Question

731 491 924 answers to any question