git-tfsgit-tfcustom-buildtfvc

TFS 2013 Git Build Definition with TFVC Source


In TFS 2013, is there any way to create a custom build workflow (via a custom .xaml file) which uses source from both a TFS-Git project and TFVC project?

When creating a Build Def in a Git project, the Source Settings tab only allows selection of a single Git repo.

When creating a Build Def in a TFVC project, the Source Settings tab allows several paths from any TFVC projects.

What I need is a way to combine the above functionalities into a single build definition. Is this possible? If yes, how?

My only requirement is that it must be a Git based Build Definition, so ideally I need a TFS Activity which allows me to pass in multiple TFVC paths and copy them to the build folder. But I'll take any suggestions.

Thanks in advance!!


Solution

  • Ultimately, I created a new Git TeamProject and set up some triggered automation to keep the TFS project and Git project in sync.

    The automation is a simple git-tf pull from the TFS project followed by a git push to the Git project.

    My custom build workflow pulls in the new Git project's repos as submodules and uses them accordingly.