Java – no teamcity build counters passed to ant

I am using teamcity to build an ant runner

I'm trying to pass the current build counter to the additional ant command line parameter using the following

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

The value - dlabel = {0} will be passed to the ant script as a literal value {0} instead of the current value of the build counter

Any ideas on how to correctly pass the build counter (not the build number)?

Solution

I believe it can be accessed through built-in parameters, that is, you don't need to try to pass it in

${build.number}

There are other values: predefined build parameters

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>