Build Number and nAnt

I realise that this is a basic question but I'm having a problem with a nAnt script with TeamCity 4.5.

My master build file should output the build number as set by the BUILD_NUMBER environment variable, using this:

<echo message="Build Number  = ${env.BUILD_NUMBER}" />

However, when the build runs I get the following error message:

[16:35:32]:
C:\TeamCity\buildAgent\work\207341c38af957ac\Source\Build\nAntBuildScripts\masterBuild.build(78,3):
Property evaluation failed.
Expression: Build Number  = ${env.BUILD_NUMBER}
                             ^^^^^^^^^^^^^^^^


Any ideas?


Thanks in advance.


David
1 comment
Comment actions Permalink

Could you please try ${build.number}

0

Please sign in to leave a comment.