How To Do
TeamCitybuildAgentconfbuildAgent.properties
This is default folder and could be different from yours.
In the end of that file you should add your variable. Let’s put there the following for the case described above:
system.host-ip-var=XXX.XXX.XXX.XXX
For example,
<replacestring from=”localhost” to=”${host-ip-var}”>
That’s it.