3

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"?

Chuque
  • 587
  • 1
  • 5
  • 22

1 Answers1

2

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

Peska
  • 3,980
  • 3
  • 23
  • 40