Chuque
Chuque

Reputation: 617

How to run TeamCity service under a user account instead of "System"?

After being unable to clone a private github repo inside a TeamCity command line build step, even when making sure the ssh-agent was running with the correct key, I found this answer: Team City Git "Host key verification failed"
How to do what this answer suggests? How do I run my TeamCity job under a different account than "System"?

Upvotes: 3

Views: 2870

Answers (1)

Peska
Peska

Reputation: 4140

If you are running TeamCity agents as a Service on Windows, then go to Server Manager -> Configuration -> Services. Find your TeamCity agent there, right click to see Properties, and go to Log On tab, where you can change default Local System account to anything you want:

enter image description here

Upvotes: 2

Related Questions