I want to pass the build number from Teamcity into an ant script as a parameter. Does anyone know the exact syntax for doing this?
+3
A:
The build number is passed as a system property at build time. You can see the predefined properties available here. In this case you would reference it in ant as a property like so:
${build.number}
Yishai
2010-05-17 00:41:03
Yes, that's how we do it with nant.
Paulo Manuel Santos
2010-05-19 14:14:57