Monday, June 02, 2008

Changing TFS Build Agent to look at a different TFS Server

Just because I continue to forget; if you need to change the TFS Server for your TFS Build Agent, change the add key="AllowedTeamServer" value="http://tfs.mycompany.com:8080/" element in the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\tfsbuildservice.exe.config file. Then bounce the TFS Build Agent via Services.

We have seen some instances where this change does not take affect right away. We even bounced the agent more than once with no affect. Oddly enough, when we got back from lunch everything was working. My assumption is that the agent uses a cache and that was not getting refreshed. Either that or heading to lunch fixes most everything ;).

2 comments:

Grant said...

I've also found that sometimes you need to update the AllowedTeamServer registry key in the HKCU of the build server user.

HKCU\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Build\Service\AllowedTeamServer

Mac Noland said...

Thanks Grant! I'll have to check that out as well.