问题
We have a TFS build agent that runs integration tests. Some of these tests make calls to web services on the Internet.
Our network uses a proxy to talk to the Internet.
Since the build agent runs under the identity on Network Service and the settings of Network Service are not configured to use the proxy, the tests fail.
How do I do one of the following?
- Change the identity of the build agent to a domain account
- Configure Network Service to use the proxy
回答1:
To change the identity of the build agent you just go into Windows Services and change the identity of the TFSBuild service (service name is "Visual Studio Team Foundation Build").
来源:https://stackoverflow.com/questions/2171927/change-identity-of-a-tfs-build-agent