Reputation: 109
We have multiple projects [in different folders] with in a stash repository and we want to checkout only one project [if there are changes] at a time. is this configuration possible through VCS settings? below is an overview
MAIN-STASH-REPOSITORY
-- project_1
-- project_2
-- project_3
-- project_4
when there are changes in 'project_1' we want just 'project_1' to be checkout to output folder [checkout directory]
Upvotes: 1
Views: 1454
Reputation: 3081
If I understand correctly, it sounds like you want to make use of VCS checkout rules (TeamCity v9 link). And also I assume you have a build configuration specific for each project_x in your repository.
On the VCS root in your build configuration, click 'View checkout rules' and enter something along the lines of:
+:relative/path/to/project_x
If you have a VCS Trigger configured, the trigger will only detect changes scoped to the locations defined by the checkout rules.
Upvotes: 1