如何在 TFS 2015 上删除/取消注册构建代理 [英] How to delete/unregister build agent on TFS 2015

查看:23
本文介绍了如何在 TFS 2015 上删除/取消注册构建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用专用服务器设置了 TFS 2015 来存储构建代理.但是,当我删除 TFS 2015 应用服务器上的构建代理时,它仍然显示在构建服务器上,在 Windows服务"

I have set up TFS 2015 with dedicated server to store the build agent. However, when I delete the build agent on TFS 2015 app server, it still show up on build server, in windows "Services"

现在构建服务器显示错误,因为服务存在但未运行.

Now the build server display error because the service exist but not running.

如何从 TFS 2015 中删除构建代理?

How can a build agent be removed from TFS 2015?

推荐答案

更新:

只要执行:

C:\YourAgentFolderPath\agent>agent\vsoagent /unconfigure

<小时>

2016 年的回答:

转到构建服务器上您解压缩构建代理的文件夹.

一些评论者提到,他们不必删除设置文件,因此您可以尝试跳过这一步,也许不再需要.

Go to the folder on the Build Server where you have unzipped your build agent.

Some of the commenters mentioned, that they didn't have to delete the settings file, so you can try to skip this step, perhaps it is not necessary anymore.

删除 settings.json 文件(如果存在).

Delete the settings.json file if it exists.

以管理员权限打开命令行工具(cmd.exe)!
转到屏幕截图中所示的文件夹.
运行以下命令:

Open the commandline tool (cmd.exe) with admin rights!
Go to the folder as shown above in the screenshot.
Run the following command:

C:\YourAgentFolderPath\agent>agent\vsoagent /unconfigure

结果(控制台日志):

正在删除 EventLog 源 vsoagent.vsalm.YourAgentName.
服务vsoagent.vsalm.YourAgentName 正在从系统中删除...
服务vsoagent.vsalm.YourAgentName 已成功从系统中删除.
尝试停止服务 vsoagent.vsalm.YourAgentName.

Removing EventLog source vsoagent.vsalm.YourAgentName.
Service vsoagent.vsalm.YourAgentName is being removed from the system...
Service vsoagent.vsalm.YourAgentName was successfully removed from the system.
Attempt to stop service vsoagent.vsalm.YourAgentName.

这篇关于如何在 TFS 2015 上删除/取消注册构建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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