Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the user identity that runs a build agent in TeamCity?

I am trying to get a build process set up in TeamCity 5, and I am encountering an access denied error when trying to copy some files. I see that my build agent is running as "SYSTEM" now, and I think that's part of the problem. I'd like to change that user identity. The trouble is that I can't figure out how to change those settings on the build agent. How can I change the build user identity?

like image 674
Chris Farmer Avatar asked Mar 21 '10 01:03

Chris Farmer


People also ask

How do I authorize a build agent on TeamCity?

If a build agent is installed and running on the same computer as the TeamCity build server, it is authorized automatically. Agents are manually enabled/disabled via the web UI. The TeamCity server only distributes builds to agents that are enabled.

How do I add someone to my TeamCity account?

On the Administration | Users page, select users, click the Add to groups button at the bottom, and specify the groups to add the users to. Note that all these users will inherit the roles defined for the group.

How do I enable my TeamCity agent?

Agents can be manually enabled/disabled via the web UI by clicking the status icon (1) next to the agent's name. Optionally, you can tell TeamCity to automatically disable/enable the agent after a period of time and enter your comment. TeamCity will follow the instructions and show the comment icon (2).


1 Answers

  1. Open the services list (Start -> Run -> services.msc)
  2. Find the "Team City Build Agent" service
  3. Open the properties dialog for the service (right click, Properties)
  4. Choose the "Log On" tab
  5. Change the identity of the user running the service by choosing "this account" and enter the password.
like image 161
Otávio Décio Avatar answered Oct 06 '22 12:10

Otávio Décio