Galkin
Galkin

Reputation: 843

Gated builds of TFS 2015 for GIT

Can any one enlighten me how TFS gated builds are working with GIT source control? Are they check and build by commits or by pull request or even differently?

Upvotes: 2

Views: 849

Answers (2)

Chamberlain
Chamberlain

Reputation: 901

Unfortunately, gated build are not working for Git.

You can use most TFBuild capabilities to build one team project at a time, and one or more repositories at a time. Gated check-in builds aren’t available yet. Symbols can be published, but they are not indexed yet.

Source from MSDN: Use Version Control

Upvotes: 0

Daniel Mann
Daniel Mann

Reputation: 59016

Gated builds aren't supported for Git, for a really simple reason: Git is a distributed version control system. The entire idea behind a gated check-in is that you validate the code is building before it's committed, but you can't do that in a DVCS, since the code has to be committed before it can be pushed.

TFS 2015 introduces Branch Policies alongside Pull Requests, so you can enable a branch policy for a given branch that restricts merges until certain criteria have been met (code reviews, builds, and work item links). When a branch policy is enabled, all merges to that branch will have to come in the form of a pull request, so you can "gate" your merges into that branch.

Upvotes: 2

Related Questions