views:

176

answers:

1

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
Yes, that's how we do it with nant.
Paulo Manuel Santos