在计算机上安装了tfs 2017(更新1)构建代理,并运行config.cmd将其连接到TFS服务器。该服务器必须重新配置,并且构建代理指向的原始URL不再有效。我要做的就是重新配置生成代理以使用新的URL进行连接。当我再次运行config.cmd时,它说我必须先调用'config.cmd remove',但是当我运行它时,它失败了,因为它正尝试访问原始URL以将其自身从代理程序池中删除。

如何强制将其卸载,以便配置新的?我什至删除了整个代理目录,从zip中重新提取,然后再试一次,但是它检测到它是在其他地方配置的。

最佳答案

删除/重命名.agent文件,然后尝试取消配置:

C:\TfsData\jessehouwing>config.cmd remove
Removing service
Waiting for service to stop...
Failed: Removing service
Could not find file 'C:\TfsData\jessehouwing\.agent'.

C:\TfsData\jessehouwing>config.cmd remove
Removing service
Succeeded: Removing service
Removing agent from the server
Cannot connect to server, because config files are missing. Skipping removing agent from the server.
Removing .credentials
Succeeded: Removing .credentials
Removing .agent
Does not exist. Skipping Removing .agent

08-27 00:17