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?
You can do this from the agent pools tab under your team project collection or account. When a newer version of the agent is only different in minor version, it is automatically upgraded by Team Services or TFS. This upgrade happens when one of the tasks requires a newer version of the agent.
Open a regular cmd as administrator, then cd to the agent folder, then run config. cmd . But when you will do it you will get a message that the agent already configured and you need to remove it and re-configure. so run config.
In your web browser, sign in to TFS, and navigate to the Agent pools tab: Navigate to your project and choose Settings (gear icon) > Agent Queues. Choose Manage pools.
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").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With