Using git for version control, I have multiple sub-projects with shared libraries in a single branch of a repository in git. Using TeamCity 2017.x, I am doing a build and it builds the complete project (build script is made that way) every time there is a check-in for any of the sub-projects.
Is there some way to (using TeamCity 2017.x only, and not combined with maven or ant) to build each sub-project independently, whenever a file for that sub-project is checked-in. The project is created in IBM IIB ESQL code and we are using separate component folders for each sub-project.
Also, what is the best way to structure our source control to get an optimal outcome with Build and Deploy using TeamCity and Git. Should we keep the shared libraries in a different repository and make a different project repository for each of the sub-projects and then use git modules to combine all and build in TeamCity?