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?
How can I change the user identity that runs a build agent in TeamCity?
Asked Answered
I think this is a topic relevant to programming. Superuser is not typically oriented around setting up automated build processes. –
Headrick
Sorry, I though TeamCity was some kind of game or something. –
Azaleah
@George: :) It's not a very exciting game at all! It's a pretty cool continuous integration framework, though. –
Headrick
it mightbe a CI framework, but it also reticulates splines. –
Eric
- Open the services list (Start -> Run -> services.msc)
- Find the "Team City Build Agent" service
- Open the properties dialog for the service (right click, Properties)
- Choose the "Log On" tab
- Change the identity of the user running the service by choosing "this account" and enter the password.
I've done this and
user.name
still shows up as SYSTEM
, even though the user.home
points to the correct path. Is this expected? Is there some sort of refreshing I have to do? –
Basaltware I have the same problem. Anyone with a solution? –
Underslung
Open the properties dialog for the service - what does this mean? How do you find the service to open the properties dialog? –
Peon
I've done this in version 8.1, and the
USERNAME
env var is showing up as SERVERNAME$
. –
Camara From Known Issues: Agent Running As Windows Service Limitations - TeamCity 8.x Documentation - Confluence: "As a Windows service, the TeamCity agent and the build processes are not able to access network shares and mapped drives." (Not sure how other CI engines such as Jenkins and TFS are able to, then.) –
Camara
@MerlynMorgan-Graham Did you restart the build agent service? That's what I had to do. –
Jerkwater
@Jerkwater - Hard to remember. Was 4 years ago ;) –
Basaltware
@MerlynMorgan-Graham Oops! Well maybe it will help someone. –
Jerkwater
© 2022 - 2024 — McMap. All rights reserved.