Allow TFS build to depend on multiple repositories
This suggestion is migrated to Developer Community. Please use below link to view the current status.
Many other build systems allow dependencies on multiple source repositories ( even different ones - i.e. Git and SVN).
I currently have setup a TFS project that has multple Git repos and TFS source repositories. I have builds that depend on a mixture - for instance a main build has a dependency on a Git repo that contains 3rd party dependencies. While there is a work around with the general command line support, it would be much more clear to define the source dependencies up front. I should be able to specify the branches on those via variables also. I know that TeamCity supports multiple source control repos. Take a look at that implementation.
Kjetil Smith commented
3 votes; why not publish the code to do "clone git's" in this repro:
Since it's possible to add different repro'es in the old TFVC (same collection), but why not git. We have also looked at the git submodules:
and the SSH public keys :
The ideal solution should be to add different git repositories just as the simple one you clone;-)
Michael Helfenstein commented
would be nice to create a trigger for build from a submodule repository
Armin Geisbusch commented
This is a high want! Thanks for implementing this!
This would be great for Angular 4+ and .NET Core MVC projects. So when Angular 4 project is built, .NET Core MVC is also gets built afterwards.
If there's another way of doing this, please let me know.
Building multiple GIT repositories in a single Team Project needs to happen for VSTS because we can't use it until then. We'll have to continue using TeamCity instead.
Now that TFS/VSTS allows for multiple repositories in a single Team Project, this is a much needed feature. I work as consultant in the DevOps space to recommend tools and help companies manage their SDLC's and mature their process. Recently on this topic I've gotten a lot of strange looks when I tell clients how they have to manage multiple repositories in a single build with TFS/VSTS. This should be easy for the end-users and built directly in the tool without the need for script hacking and/or git manipulations.