Agra (build 3274) agent.name problem (and solution)

Hi,

Just a warning to those who will be trying build 3274 (the recent TeamCity 1.5 beta that was released. Code name: Agra). If you start a build and get the following error fairly immediately:
"java.lang.Error: getenv no longer supported, use properties and -D instead: agent.name"

...the workaround is to pass the agent.name system property to the build agent. To do this, I did the following:
1) Stopped TeamCity.
2) Added the following line to: buildAgent/conf/buildAgent.properties:
system.agent.name=build_agent
3) Restarted TeamCity.

Thanks to Kir for the workaround.

-Dave

Please sign in to leave a comment.