How to update or add an Environment Variable to a TeamCity agent

Viewed 26076

TeamCity agent's show a list of "Environment Variables" under Agent Parameters but I cannot get them to update. I've added environment variables to my agent operating system, but cannot get them to refresh. I've tried restarting the agent and disabling and re-enabling the agent.

2 Answers

Just tried it in TeamCity 2017.2.1 and the machine-level environment variables are picked up by TeamCity build agents (as well as the ones in buildAgent.properties), so it looks like this has been fixed.

Related