Is it possible to ignore specific folders when fetching from a TFS repository?

Tom Kowalski's Avatar

Tom Kowalski

14 Aug, 2015 02:06 PM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Aug, 2015 03:12 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by Tom Kowalski on 14 Aug, 2015 03:14 PM

    Tom Kowalski's Avatar

    Is it possible to fetch from multiple specific directories then?

  3. Support Staff 3 Posted by Feodor Fitsner on 14 Aug, 2015 06:13 PM

    Feodor Fitsner's Avatar

    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. 4 Posted by Tom Kowalski on 14 Aug, 2015 07:05 PM

    Tom Kowalski's Avatar

    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

  5. Support Staff 5 Posted by Feodor Fitsner on 14 Aug, 2015 08:29 PM

    Feodor Fitsner's Avatar

    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/items

    Let me know if you need help with API.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

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