VCS / External Reference Question - need help configuring for branches/trunk and externally reference projects.
Hi Everyone-
Thanks in advance for your help.
I am (of course) new to TeamCity but am very interested in exploring its capabilities.
I use SVN, and have a typical branch/trunk configuration.
There are two SVN repositories involved, however:
MyProject Repository
-> Branches
->3.0.1
->Website/Website.sln
-> Trunk
->Root
->Website/Website.sln
-> Resources
->Ajaxcontroltoolkit.dll
OtherProject Repository
->necessary.dll
Right now I have two different VCSources which check out the 3.0.1 branch and trunk, respectively. The sources don't, however, checkout the 'Resources' directory so the build fails each time. Consider that issue #1.
The builds are also dependent on a reference to an separate repository (as seenn above). Consider that issue #2.
Do you have any recommendations for getting teamcity to buid properly?
Thanks in advance.
Please sign in to leave a comment.
Hello Eric,
In your case, I'd suggest to create 2 VCSRoots:
root1: MyProject Repository
root2: OtherProject Repository
For a build configuration which builds Trunk, create a build configuration with the following configuration of VCSRoots and checkout rules:
Attach root1 with checkout rules:
+:Trunk/Root
+:Resources
Attach root2 with empty checkout rules.
Set working directory to Trunk/Root
For a build configuration which builds 3.0.1, create a build configuration with the following configuration of VCSRoots and checkout rules:
Attach root1 with checkout rules:
+:Branches/3.0.1
+:Resources
Attach root2 with empty checkout rules.
Set working directory to Brainches/3.0.1
In short, TeamCity allows to combine multiple VCS sources with different checkout rules. You can also specify target paths in checkout rules, like:
+:Trunk/Root => build/path
+:Resources => build/libs
Hope this helps,
KIR
Hi Kirill-
Thank you very much! This helped greatly.
Eric.