Uninstall build agent

Hi,

I could not find any documentation for uninstalling build agents (Unix). We had a temp machine to try out an Unix agent that we now want to remove. We've unauthorized and disabled it, but we'd like to clean it up further.

Please advise.

Regards,

John

Running a licensed Team City 8.0.5 (build 27692)

0
7 comments

Hi John,

The agent stores all related data under its directory and the only place that requires uninstallation into an OS is integrating into the automatic start system (e.g. on Linux daemon process with agent.sh start command could be configured).
To unistall agent on Unix machine, you need to stop it (using agent.sh stop command) and then you can safely remove the whole agent directory. If you change default agent's workDir, tempDir and systemDir (you can check it in buildAgent.properties file) you should also remove these folders.

0
Avatar
Permanently deleted user

Yes, but it stil shows in the TC portal as inactive. Is there a way of getting rid of it in the portal as well?

0

Please open Agents > Unauthorized, select this agent and Remove agent. See attached screenshot.
Please read more about Agent Statusses.



Attachment(s):
Screen Shot 2014-12-01 at 18.05.14.png
0
Avatar
Permanently deleted user

Right, I don't have this "Remove" button in the UI. Possibly due to admin rights or that the agent says "Connected" still (?). What are the criterias for this button being visible for an agent/user?

1

This button appears only when agent is disconnected. System administrator, Project administrator and Agent manager have permissions to remove agents.

Are you sure that you have switched off the agent? Could you please attach teamcity-agent.log and teamcity-server.log files?

0

I have the same issue. I have 2 macos build agents that are disabled / unauthorized and I want to  remove them from the system. How?

0
Hi! As Alina mentioned, you should be able to remove the disconnected and unauthorized agent by clicking Remove on the agent's page if your TeamCity user account has the Remove Agent permission.
0

Please sign in to leave a comment.