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
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
Please sign in to leave a comment.
Could you please try ${build.number}