Chuck Conway

In The craft

Writing the SVN Reversion to a File in TeamCity

March 28, 2013 · 1 minute read

I spent hours trying to figure this one out. It turned out brain dead simple.

  1. Add a build step
  2. Select the command line runner type
  3. Set the working path to the path you’d like to save the version file too.
  4. In the Custom Script Text Field add the following text: ECHO %build.vcs.number% > version.txt