Setup: TFS in on server A. TeamCity server and agent is on server B.
TFS has the following project/folder hierarchy (it is actually far more involved) but for "simplicity", lets leave it at this:
Now on TeamCity side, I've setup a build to pull files from TFS -> ProjectB -> Folder_3 and run a cmd which is File_2.cmd
The "Root" directory on TeamCity side is "$/ProjectB/Folder_3"
And here is what I get (note: TeamCity server had absolutely no files in the desination directory):
As you can see File_1, File_2, File_3 - are expected because they are in TFS
File_4, File_5, File_6, and File_7 - where did those come from if they are not in TFS in Folder_3A1?
Is there a log to see where TeamCity is getting files from? Or why would it get "some" files not related to Root directory?
How do I diagnose and correct this issue?