java - Teamcity - Build Number - Pass into ant script -


I want to run the build number in a ant script as a number from the teamcy. Does anyone know the exact syntax to do this?

The build number is passed on as a system property on the build. You can see the predefined properties available in this case you will refer to it as an asset in ant:

  $ {build.number}  

Comments