meta-runner gets wrong teamcity home directory
Our teamcity server and agents have different home directories. We are finding that meta-runners (for command-line bash at least) the HOME environment variable is set to the value of the server.
Even with:
<parameters>
<param name="env.HOME" value="/opt/teamcity" />
</parameters>
the HOME env is incorrect.
The only way so I have found to work around it is to explicitly:
export HOME=/data/teamcity
Also, in the agent "Agent Parameters" tab the value for HOME is correct.
Please sign in to leave a comment.
Hi Barry,
could you share your full metarunner (or a sample one that replicates the issue?) I've tried creating one which uses the %env.HOME% variable and it seems to work as expected on my end, so I'm assuming there are some other conditions that trigger the actual problem.