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
2
votes
1 answer

How to mske TeamCity trigger a build only for PRs to master branch?

I've configured build with the following branch specification: -: +:refs/pull/*/merge But such specification makes TC to trigger build for any PR, though I need this only for PRs to master. Is it possible to achieve?
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
2
votes
1 answer

TFS 2010: Gated Check-In On Main Branch; Rolling Builds on Dev Branch?

I recently migrated from VSS to TFS 2010 and I've been absolutely loving it, but there's something I haven't yet been able to get working the way I think it should. GOALS I'd like to quickly know when a change to Development breaks a build. If we…
Kevin Fairchild
  • 10,891
  • 6
  • 33
  • 52
2
votes
1 answer

Changed TFS 2015 server IP address and now gated checkins won't build

My company just decided to move our TFS 2015 server and gave it a new IP and Computer Name. I have fixed some of the resulting issues and can connect to the server, but I cannot get the gated check-in build working again. I'm getting the following…
Danny Ellis Jr.
  • 1,674
  • 2
  • 23
  • 38
2
votes
2 answers

TFS 2010 Exclude file type from gated check-in

Is it possible programmatically to on a Gated -Check in build in TFS 2010 to not trigger a Gated Build when checking in a specific file type, i.e. ".config"? How can I accomplish that?
LisDani
  • 41
  • 1
1
vote
0 answers

on prem Azure DevOps Server 2020- PRs cancelling in-process Build Validation builds

We have an "on prem" Azure DevOps Server 2020. For several of our branches, we have a branch policy requiring a "Build Validation" gated check-in build. We have a build definition with one build agent for this. Our issue is that if someone submits…
LrngToFly
  • 11
  • 1
1
vote
1 answer

Can't reconcile workspace on Gated Check-in

My workspace is not reconciling after a gated check-in. I don't see an error. My files are checked in, but still showing under pending changes. Doing a compare with latest shows no differences. If I bypass the gated check-in, it reconciles as…
Don Chambers
  • 3,798
  • 9
  • 33
  • 74
1
vote
1 answer

What is the exact use of Run continuous integration triggers for committed changes and other features in TFS 2017 Gated Build?

I am bit confused with the options that are provided in the TFS 2017 Build under the Triggers section. I have a two separate build definitions one is used for code check-in i.e. called Gated Build and other is Manual build which we used for code…
1
vote
2 answers

Configuring a workflow to be used with a gated check-in

I am trying to setup a gated check-in policy, but I am running into an issue with my workflow. In the build definition menu, I select Trigger -> Gated Check-in. This gives me the error... "The trigger you selected in the trigger tab cannot be used…
user611726
1
vote
0 answers

TFS Shelveset/Gated Check-in fail: TF400898: An Internal Error Occurred

When attempting to run a TFS 2015 build with a changeset specified (or gated checkin) we get an error at the start of the build: So this looks to be a problem with the TF UNSHELVE command... I logged onto the server as the TFS agent user account…
Jon Barker
  • 1,788
  • 15
  • 25
1
vote
1 answer

Build trigger to create release branch azure devops

We use gitflow. When pull request is created and approved we want to run a gated build. on sucess want to create a release branch from pull request commit. This commit build should get picked up by the gated approval. Could you please direct me to…
AllSpark
  • 425
  • 1
  • 4
  • 17
1
vote
1 answer

Cannot be undone because a file already exists at "tfs file path here". The file must be deleted from disk for the undo to succeed

I have copied and paste that existing Uploads folder on same solution. I have renamed existing Uploads folder from "Uploads" to "Uploadsold". Then renamed that newly pasted(created) folder from "Uploads - Copy" to "Uploads". Then I have Gated…
Gowtham Alan
  • 234
  • 3
  • 15
1
vote
1 answer

TFS (Builds-Triggers) - There is impact of checking CI option and Gated Check-in option?

I don't understand why can I check this two options together because this options are not similar in their behavior. I only want to check in the changes when the build (CI) succeeds. What I need to do? Have a nice day.
Ran Nissan
  • 92
  • 1
  • 1
  • 10
1
vote
1 answer

TFS reconcile after gated check-in validation deletes all [merge, branch] changes in my local workspace

Every time I check-in changes to the gated build that includes new files via a branch merge, when I reconcile, the new files are deleted from my workspace and I have to do a get latest with override to re-obtain the files. This does not affect…
Elaskanator
  • 1,135
  • 10
  • 28
1
vote
0 answers

Is it possible to select a branch just before the build in TeamCity?

TFS allows me to specify a branch against which build is run. TeamCity's build configuration has default branch and branch specification parameters which are statically defined. But I want to manually start the same build for different feature…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
1
vote
1 answer

TFS Gated Check In - Send Email Notification only to the Build Requester if the build fails

I am using TFS 2015 for Continuous Integrations and Deployment. I have set up the Gated Check in for my build definition. Question: Is there any way to send an email alerts to the developer who requested the build if the build fails? I understand…