Is it possible to ignore specific folders when fetching from a TFS repository?
We have a fairly large project repository and it a is taking quite a while to fetch the contents during the build. However, majority of the directories in the repository are not relevant to building the project. Is there any way to ignore specific folders in the repository?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 14 Aug, 2015 03:12 PM
Hi Tom,
VSO API allows fetching specific directories (this is what currently happening), but not ignoring them. Try moving those resources to a separate repo?
2 Posted by Tom Kowalski on 14 Aug, 2015 03:14 PM
Is it possible to fetch from multiple specific directories then?
Support Staff 3 Posted by Feodor Fitsner on 14 Aug, 2015 06:13 PM
Technically yes (though it's not implemented in AV), but what folders structure would you have in that case? I mean, say, main repo in $/repos/projectA and other stuff should be in dir on the same level, kind of $/repos/stuff?
4 Posted by Tom Kowalski on 14 Aug, 2015 07:05 PM
Here is an example of our repo structure:
$/TeamProject/Documentation
$/TeamProject/ProjectLibrary
$/TeamProject/ProjectRestApi
$/TeamProject/ProjectConsole
It would be great if we could just fetch the "ProjectRestApi" and "ProjectLibrary" directories. Currently we have to grab the whole "TeamProject" directory which is over a gig and takes a considerable amount of time just to fetch it. What is needed for the build is in just a few folders and is only about 5% of the "TeamProject" directory size. Thanks
Support Staff 5 Posted by Feodor Fitsner on 14 Aug, 2015 08:29 PM
As an idea you can point your AppVeyor project to
ProjectRestApi
and then during the build download "ProjectLibrary" using VSO API with Basic authentication: https://www.visualstudio.com/integrate/api/tfvc/itemsLet me know if you need help with API.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.