强制删除 TFS 2017 构建代理 [英] Force removal of TFS 2017 build agent

查看:18
本文介绍了强制删除 TFS 2017 构建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

解决方案

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

C:\TfsData\jessehouwing>config.cmd 删除移除服务正在等待服务停止...失败:删除服务找不到文件C:\TfsData\jessehouwing\.agent".C:\TfsData\jessehouwing>config.cmd 删除移除服务成功:删除服务从服务器删除代理无法连接到服务器,因为缺少配置文件.跳过从服务器删除代理.删除 .credentials成功:删除 .credentials删除 .agent不存在.跳过删除 .agent

Installed the tfs 2017 (update 1) build agent on a machine and ran config.cmd to connect it to a TFS server. That server had to be reconfigured and the original url that the build agent was pointing to is no longer valid. All I want to do is reconfigure the build agent to connect using the new url. When I run config.cmd again, it says that I must first call 'config.cmd remove' but when I run that, it fails because it is trying to reach out to the original url to remove itself from the agent pool.

How can I force it to uninstall so that I can configure a new one? I have even deleted the whole agent directory, re-extracted from zip, and tried again but it's detecting that it's configured from somewhere else.

解决方案

Delete/rename the .agent file and then try to unconfigure:

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

这篇关于强制删除 TFS 2017 构建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆