Ant Buildstep with local environment variables

hello i have an ant build.xml which runs fine when started without teamcity on the agent computer.

however when started via a teamcity build it fails because it can t resolve an environment variable which is defined on the agent computer only but not on the teamcity server computer.

what can i do about that?

1 comment
Comment actions Permalink

Hi

TeamCity server does not execute Ant scripts - it's performed by build agents on other machines.
Probably build agent service is launched under different account, so its environment variable set differs from the set you're checking.

0

Please sign in to leave a comment.