Set Window's Build Agent System Properties

TeamCity Support,

In the web UI, for each build agent, there is a long list of system properties and environment variables that TeamCity sets.

How and from where is TeamCity server reading the system variables for each Windows agent?

To give you an example, on one Windows host, the build agent service is started by a specific user account but the system property called "
user.name" or "USERNAME" is being set to "SYSTEM" so I'd like to know how that is...

Thank you in advance for the help,

Oscar

3 comments
Comment actions Permalink

Oscar,
You might be seeing an issue described in http://youtrack.jetbrains.net/issue/TW-5645.

0
Comment actions Permalink

Thank you for the reference Oleg; that is exactly the same issue i was seeing on Windows 2008 server platform.  I created a new user environment variable and set the value to the user account that is actually running TeamCity build agent service which should be honored before system variable.  After a service restart, I see the new system property showing the correct user account name.

-Oscar

0
Comment actions Permalink

Glad I could help.

0

Please sign in to leave a comment.