Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude all except 1 subdirectory from teamcity checkout rule

Tags:

teamcity

I have a VCS root with the following checkout rules:

+:.
-:externals
+:externals/jQuery

However TeamCity doesn't seems to do a checkout for externals/jQuery directory. Is there anyway to achive this, except by creating a separate VCS root for this directory? I'm using TeamCity 8.0 latest EAP.

Update (2017)

Since TeamCity 10 it's seems that it's possible to do what this question was asking

+:**/* => target_directory
-:**/folder1 => target_directory
like image 543
Evgeny Lukashevich Avatar asked Apr 25 '13 10:04

Evgeny Lukashevich


1 Answers

If you want to checkout only the externals/jquery directory and nothing else, add this in your checkout conditions .

+:externals/jQuery -> jQueryDir(custom name)

or

+:externals/jQuery -> .
like image 140
Biswajit_86 Avatar answered Dec 09 '22 00:12

Biswajit_86