How to use% teamcity.build.checkoutDir% path-variable (win7) in ant script
I am trying to use the% teamcity.build.checkoutDir% variable in my ant script to create a custom file path that is passed as a parameter to another program called with ant exec work.
<exec executable="${props.tools.vbpUpdater}" failonerror="true" >
<arg line="-c${vbpConfigLocal} ${teamcity.agent.checkoutDir}/${vbpFile}" />
</exec>
The path format appears to be off. I get:
C:\TeamCity\buildAgent
What I was expecting is something like this
C:\\TeamCity\\buildAgent or C:/TeamCity/buildAgent
If I add a custom property to my build agent with the expected format (I did it just for testing) everything works fine in my ant script.
Regards
+3
source to share
1 answer
You can use these instructions and create a build step (it must be the first in the queue) that replaces the "/" with the values you want. Use this modified value in the next build step.
I did some similar things when I integrated the Mercurial build number into the build version
+1
source to share