git filter in on premise TFS 2015 Update 3

一曲冷凌霜 提交于 2019-12-25 16:48:53

问题


If the repository is git behind our TFS project there is no way to filter the repository by source folder. The build always pull the whole repository. We have multiple solutions in the TFS project we want to build separetly. We can do it, but it is slow because we cannot filter the source folder to download.

The other problem that we cannot add folder to CI trigger. So all the projects will be build after a push in any projects.

I know that the Team Services already support path filters for git repository. But does anybody know some workarounds for this problem for on premise TFS 2015 Update 3?


回答1:


There is no workaround for this on TFS 2015 update3. Unless separate your components into different repositories. Multiple projects must be in their own repository. All dependencies is a project by it self and can be handled as NuGet packages. Then your whole solution would not break if you change something in the dependency project and using CI trigger.

This feature will ship in TFS 15 and is already available on VSTS

https://www.visualstudio.com/en-us/docs/build/news/2016#june-14



来源:https://stackoverflow.com/questions/40082081/git-filter-in-on-premise-tfs-2015-update-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!