Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

build trigger based on checkins to specific folder in a GIT repo in teamcity

I have a GIT repo for my project with 2 folders - Client and Server, containing corresponding code in each folder. I would like to have two teamcity build procedures, one each for client and server code changes. In the current setup, the entire GIT repo is checked out and built. I would like to restrict the client build only to client code changes and server build only to server changes.

One option is to split them to 2 different repos, but this is inconvenient for the developers.

Is there a way to configure teamcity to listen to changes only on a specific folder ?

like image 256
praskris Avatar asked Nov 01 '22 13:11

praskris


1 Answers

You still could split client and server in two repos, and keep the same folder structure for the developers, since both repos could be declared as submodules in the parent repo.

And you can setup those submodules in the parent repo in order to follow the latest commits of their respective master branch.

That way, it is easier for TeamCity to follow only the commits of one specific repo (the client on, or the server one), since partial cloning isn't supported with git.

like image 151
VonC Avatar answered Nov 12 '22 19:11

VonC