How to delete/unregister build agent on TFS 2015

≡放荡痞女 提交于 2019-12-10 12:32:55

问题


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.

How can a build agent be removed from TFS 2015?


回答1:


Update:

Just execute:

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

Answer from year 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.

Delete the settings.json file if it exists.

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

Result (console log):

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.



来源:https://stackoverflow.com/questions/38647095/how-to-delete-unregister-build-agent-on-tfs-2015

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!