tags:

views:

34

answers:

0

I'm using Teamcity to build with an Ant runner.

I'm trying to pass the current build counter into the "Additional Ant command line parameters" using the following

-lib %teamcity.build.checkoutDir%/MI/CustomAntTasks/jars/CustomAntTasks.jar -Dlabel={0}

The value -Dlabel={0} is being passed into the Ant script as the literal value {0} and not the current value of the build counter.

Any ideas on how I can correctly pass through the build counter (not the build number)?