Java – teamcity – build number – pass in ant script

I want to pass the build number in teamcity as a parameter to the ant script Who knows the exact syntax for doing this?

Solution

The build number is passed as a system property at build time You can see the available predefined properties here In this case, you can refer to it as an attribute in ant, as follows:

${build.number}
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
分享
二维码
< <上一篇
下一篇>>