Herno
Herno

Reputation: 1597

TFS 2013 CI build from a remote Git repo

Is it possible to schedule a CI Build in TFS server to clone a "remote Git repository" (i.e. from gitHub or gitLab) and run the build??

I know that TFS 2013 can work with a Self-hosted Git repo. But can i make a "TFS build controller" get the code from a remote repo and build it, like cloning/pulling from github?

I am only interested in running the continous integration build, not in using Visual Studio as a git client. (I use SourceTree as git client)

Upvotes: 0

Views: 660

Answers (1)

If you create a self hosted Git repo in TFS and clone your remote repo into it you will be able to configure a build for that folder. Then as part of the "pre-build" script you can run whatever you like to get the right bits to where they need to be.

Ideally you need to customise the build template to run a script pre-get that will sync the repos before TF Build gets the code.

Upvotes: 1

Related Questions