How to pass TeamCity build number to NAnt script?

I would like to pass TeamCity's build number to my NAnt script. Do I just put "build.number" as part of the command line parameters, or does it need to be wrapped in special characters of any sort?

2 comments

Brian Baker wrote:

I would like to pass TeamCity's build number to my NAnt script. Do I just put "build.number" as part of the command line parameters, or does it need to be wrapped in special characters of any sort?



Read the BUILD_NUMBER environment variable

0

Thanks, I was able to get it working by using the environment variable.

0

Please sign in to leave a comment.