Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity & Subversion: Checkout copies ALL tags to buildagent's checkout directory

We have the following URL: URL: https://dev-01:8555/svn/Shop

We have the following structure in SubVersion

Shop
--trunk
--branches
--tags

The problem is, when I do a build, under the buildagent directory, I get every single tag in the repository copied over to the buildagent.

Is there a way to only retrieve the HEAD revision to effect the build on.

like image 996
El Toro Bauldo Avatar asked Oct 27 '09 09:10

El Toro Bauldo


2 Answers

Change: Administration -> {Project Name} -> {Build Configuration Name} Configuration -> Configuration Steps -> Version Control Settings -> edit checkout rules

Add these lines:

-:tags
-:branches

Checkout Rules Documentations

like image 159
Jonathan Parker Avatar answered Nov 15 '22 04:11

Jonathan Parker


Assuming you want the trunk then the VCS path in TeamCity should be:

https://dev-01:8555/svn/Shop/trunk

As an aside - one would generally expect the path in TeamCity to be the same as the path you use to checkout your working copy unless you're working on a branch.

like image 38
Murph Avatar answered Nov 15 '22 04:11

Murph