In The craft
Writing the SVN Reversion to a File in TeamCity
I spent hours trying to figure this one out. It turned out brain dead simple.
- Add a build step
- Select the command line runner type
- Set the working path to the path you’d like to save the version file too.
- In the Custom Script Text Field add the following text: ECHO %build.vcs.number% > version.txt
