Getting a specific SVN revision Follow
How do I go about getting a specific SVN revision. As far as I can tell, TeamCity always gets the head. It looks like there are historical builds, but TeamCity must have built those for me to go back. I just want to specify '-r 1234' somewhere, but every place I have tried causes an error. Any assistance is appreciated.
Please sign in to leave a comment.
Hello Adam,
There is no explicit way to obtain specific revision. I see two workarounds for this:
- use svn:externals with specific revision
- create a svn tag for this revision and obtain sources for tag
Hope this helps,
KIR
Both of these options sound like good possibilities. However, I can not find a reference for how to accomplish this in the TeamCity documentation. Can you please provide a link?
Hello Adam,
In fact, there is more to setup in Subversion than in TeamCity.
Docs for svn:externals is available at http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html
Docs for creating tags is available at http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html (see note about -r key to specify revision)
TeamCity docs for setting up Subversion is available at http://www.jetbrains.net/confluence/display/TCD4/Subversion
There are an option for externals support. To use tagged version, you have to construct URL accordingly.
Hope this helps,
KIR