4

How to pass svn last commit author and comment to ant build script, invoked via Teamcity runner?

qwazer
  • 7,174
  • 7
  • 44
  • 69

1 Answers1

5

You can make use of %system.build.vcs.number% and pass it as parameter to the ANT build file or read the environment variable set by TeamCity - %env.BUILD_VCS_NUMBER% ( the environment variable to be read will be BUILD_VCS_NUMBER) in the build file.

Use that along with the %vcsroot.url% to get the author and the commit message ( you can choose different vcs roots using their names like %vcsroot.name.url%

manojlds
  • 290,304
  • 63
  • 469
  • 417