Tagging a deployment with a VCS build number.

Hi Everyone,

I am using TeamCity 4.5.1 to build and deploy an ASP.Net application to development.

This is working perfectly so far, however, my manager has asked that I tag the folder with the specific SVN Revision from which the source was compiled.

I am using an MSBuild script to do the build and deployment, however, I am unable to successfully retrieve the build number.

Here is the MSBuild command I'm using (sanitized):

<Exec Command=">\\server08\D$\Websites\MYPROJECT\version.txt echo %env.BUILD_VCS_NUMBER%,%env.BUILD_VCS_NUMBER.1%,%system.build.vcs.number%,%system.build.vcs.number.1%,%system.build.number.format%,%system.build.number.format.1%,%system.build.vcs.number.MYPROJECT_Web_Root%,%env.MYPROJECT_VCS_NUMBER_DIRT_Web_Root%" />

Version.txt turns up like this:

,,,,,,,,

Aka, empty.  What am I doing wrong?

1 comment
Comment actions Permalink

Sorry for the delay. The question is still actual with latest TeamCity release?

Kind regards,
Marina
0

Please sign in to leave a comment.