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:

Property evaluation failed.
Expression: Build Number  = ${env.BUILD_NUMBER}

Any ideas?

Thanks in advance.

1 comment
Comment actions Permalink

Could you please try ${build.number}


Please sign in to leave a comment.