Teamcity - build number - go to ant script

I want to pass the build number from Teamcity to ant script as a parameter. Does anyone know the exact syntax for this?

+3
source share
1 answer

The assembly number is passed as a system property during assembly. You can see the predefined properties available here . In this case, you refer to it in ant as a property like this:

 ${build.number}
+14
source

Source: https://habr.com/ru/post/1745705/


All Articles