Teamcity run build from one of vcs roots
I have TeamCity configuration which contains 2 vcs roots with identical directory structure:
-
root_1_svn
-
root_2_git
Build Steps:
-
ms_build_1
-
ms_build_2
Is it possible to build a solution for the vcs root in which there were changes only?
Example:
-
if updated root_1_svn, then TC run ms_build_1, ms_build_2 for code from root_1_svn only
-
if updated root_2_git, then TC run ms_build_1, ms_build_2 for code from root_2_git only
Please sign in to leave a comment.
I'm afraid no, not like that at least.
If the two roots have identical directory structure, I'm not really sure about why you have the two and not just one. If they have identical structure, they will be overriding each other all the time, which looks wasteful to say the least.
The recommendation, if you still want to build the two of them, would be to extract a build template without the VCS Roots, and create two separate configurations, one for SVN, the other one for Git. That way, you can trigger them separately for both git and svn, and get separate reporting so you are aware of which of the two is actually failing. You also reduce the possibility of impact of the files from one into builds triggered by the other repository.