Questions tagged [gated-checkin]

A Gated-Check-in is a TFS feature that allows code submitted to a TFS source control system to be built and validated before being accepted for submission to the source control. If the build fails a gated-check-in, the check-in is rejected. Similar concept is available in other Continuous Integration servers under different names: gated check-in, pre-tested commit and pre-flight.

A Gated-Check-in is a TFS feature that allows code submitted to a TFS source control system to be built and validated before being accepted for submission to the source control. If the build fails a gated-check-in, the check-in is rejected.
Similar concept is available in other Continuous Integration servers such as: TeamCity's Pre-Tested (Delayed) commit, Electric Flow's pre-flight and Verigreen with Jenkins

61 questions
14
votes
3 answers

When to Use Gated Check-In?

I am using TFS 2010. Currently I use Gated Check-in build on the trunk (MAIN) branch only. And, I use CI on DEV and RELEASE branches. Why not use Gated Check-in build on all the branches? In what scenarios, you shouldn't use Gated Check-in build…
H A
  • 1,251
  • 2
  • 24
  • 39
14
votes
1 answer

Invalid Switch syntax builds successfully?

Could someone please help enlighten me? I went to check-in some changes to TFS and my check-in was rejected. It prompted me to take a look at a switch statement I had edited. What I've found is that Visual Studio 2017 claims there is no compile…
Urk
  • 880
  • 8
  • 16
9
votes
1 answer

How can a Gated Check-in be configured in tfs 2015 "vNext" builds?

The new build system is pretty exciting. But... I would like to know if there's any way to create a build definition with a gated checkin using TFS Version Control like it's available in XAML build definition? Is it a hidden option or difficult to…
7
votes
4 answers

TFS 2010 Multiple Solutions & Build with Gated Check-in

I have two solutions in their corresponding folder e.g. SolutionA\SolutionsA.sln SolutionB\SolutionB.sln Each solution has Gated Check-in build configured; i.e. two build definitions GatedSolutionA and GatedSolutionB. Now the situation is, if I…
scorpio
  • 1,587
  • 2
  • 15
  • 27
6
votes
2 answers

Can we build multiple gated check-ins in parallel?

Assuming we continue to use XAML build definitions for gated check-ins in TFS 2015 because the vNext system doesn't support them, is it still possible to get multiple gated check-ins running in parallel? I know that there is a Parallel option in the…
Sam
  • 6,167
  • 30
  • 39
4
votes
1 answer

Gated check-in always associates work items with build

I am using TFS2010 with gated check-ins, and even though I have set "Associate Chagesets and Work Items" to false, changesets and work items are associated with this build. This happens only on gated builds. If I run build with other check-in…
Zvonko
  • 363
  • 2
  • 19
4
votes
2 answers

How can a Gated check-in be triggered programmatically?

I am getting errors using the Workspace.Checkin command in TFS because the files I am trying to check in are part of a Gated build definition. There are lots of people asking how to override a gated check-in using the TFS API. But a very different…
paulyphonic
  • 854
  • 1
  • 6
  • 15
4
votes
1 answer

TFS Gated check-in -- How to reject check-in on Partial Build Success?

I have a post-build script (powershell) which throws an exception, as expected. The post-build script is defined in the build definition in the 'Post-build script path' section. The exception is logged in the 'Other Errors and Warnings' section of…
paulio
  • 393
  • 7
  • 18
3
votes
1 answer

Does Maven's concept of snapshots of any use for CI/CD?

I understand that snapshot is something under development, i.e. 1.0-SNAPSHOT is something that will be eventually released as 1.0. But why do I need it? Here is the flow: I develop the library with semantic versioning Major.Minor.Revision[.Build]…
3
votes
1 answer

Build Checkin Policy vs Private Gated Checkin

Using visual studio 2012 and tfs 2012. What's the difference between "build" checkin policy and a gated checkin? They both seem to require a successful build in order to checkin. What's the advantages and disadvantages of them both? Should one be…
3
votes
3 answers

TFS gated check in issue

I was wondering whether I should post this here or not, but then I saw other similar posts on TFS here and they did not solve my problem so I decided to go ahead and post it. I am trying to fix a TFS box set up by an ex colleague. I have not used…
user20358
  • 14,182
  • 36
  • 114
  • 186
3
votes
2 answers

Combining "Gated Checkin" and "Continuious Integration" Builds in Team Foundation Server

this Question moved to how to prevent an Gated Check-In to put the Keyword ***NO_CI*** in the Comment where I put the Question in more detail with my gained knowledge For ensuring Code Quality and Unit Testing I habe established a Gated…
sebastianmehler
  • 1,033
  • 1
  • 11
  • 23
2
votes
1 answer

TFS 2010 Issue with tracking Changesets in Builds that are a result of Gated Checkins

In order to retrieve the information which Changeset was included in which Build, we use "Label Sidekick" of Team Foundation Sidekicks, where we place the Label of the Build & expect to find the newly built Changeset. Our development process in TFS…
pantelif
  • 8,524
  • 2
  • 33
  • 48
2
votes
1 answer

False Positive on Gated Check-Ins

I am doing builds using a custom MSBuild Script in TFS2010 SP1. The Build Type is a gated Check-In and fails even though the MSBuild log shows as successful on my builds. What would trigger a failure after MSBuild is complete and before The build…
Mark Kola
  • 31
  • 2
2
votes
1 answer

TFS 2018: Gated checkin with build variables

In our TFS2018 website I have made build definitions for our development branch and our release branch. The release branches have the following naming convention: Release_yyyy_mm_dd. DEV Branch | -- Release Folder | | | -- Release_2018_01_01…
1
2 3 4 5