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
1
vote
1 answer

How to make TFS vNext Builds to delete gated-checkin-shelvestes after successful build?

In XAML Builds, the temp-auto-created shelvesets of Gated CheckIn builds, disappear automatically after the checkin. In vNext - they aren't. Is there way to make them disappear automatically after successful checkin-build?
Yaakov Shoham
  • 10,182
  • 7
  • 37
  • 45
1
vote
1 answer

Check-in changes after successful build in TFS Build 2015 (vNext)

In TFS, in the old XAML build definitions, when queueing build for "Latest sources with shelveset" (in the web interface at least) there is nice checkbox that allows you to "Check-in changes after successful build". Now we've moved to the new vNext…
Yaakov Shoham
  • 10,182
  • 7
  • 37
  • 45
1
vote
1 answer

How to achieve gated check-in for GitLab Repository?

My requirement is whenever developer try to do check-in existing GitLab repository then before doing check-in in repository,build should trigger (Jenkins build) and Junit test case should run on new check-in and if passes then it should go forward…
Gaurav Sharma
  • 13
  • 1
  • 3
1
vote
3 answers

TFS 2015 : Gated check in are waiting for agent to be requested

The issue is similar to the issue in the below link. TFS 2015 vNext Gated Check-in builds are "Waiting for an agent to be requested"?
Jaison Joy
  • 11
  • 2
1
vote
1 answer

TFS 2015 vNext Gated Check-in builds are "Waiting for an agent to be requested"?

We are trying to use TFS 2015 Gated Builds. The trigger hooks in correctly, and the build gets created, but it never gets picked up by any agent. Non-gated builds start fine, and if we manually restart the gated build, that runs fine too. But the…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
1
vote
1 answer

tfs 2015 gated check in failed

I created a ci build in tfs 2015.3. On the trigger tab I set gated check in. Is there a way to let the developer now in vs that the build failed. Currently there is no way, I do not want to use alerts, I would like for a message in vs. In addition,…
Naphtali Davies
  • 227
  • 1
  • 9
1
vote
1 answer

TFS vNext Builds - Gated-Check-in Triggers cease to trigger some time after initial definition

I've defined several Build Definitions using the TFS vNext build system. These include use of the Gated Check-In feature. Initially, when the builds are defined, check-ins that have files that fall within the path of any of the Include sections of…
CJBS
  • 15,147
  • 6
  • 86
  • 135
1
vote
1 answer

TFS 2015 Gated Checkin issues

I know it's a very new feature but I was wondering if anyone has had any success with the new gated check-in mechanism in TFS 2015 Update 2? We've copied our TFS 2013 and upgraded it to 2015 then applied to update 2. I've created a build server,…
1
vote
2 answers

Nuget files are locked every time Gated Checkin Build fails

I know that NuGet restoration could place checkout locks on the package folder and the contained files. But why does TFS Build not release those locks in the event of Gated Checkin Build failing due to compilation errors? When Gated Checkin Build…
user3918598
  • 285
  • 1
  • 4
  • 12
1
vote
1 answer

Gated checkins missing from completed builds

When reviewing the Build History via the browser (servername:8080/tfs/DefaultCollection/MyProj/_Build), I find that there are numerous missing entries for builds which were triggered via gated checkins. When I filter on only that build definition, I…
JamieMeyer
  • 386
  • 3
  • 14
1
vote
1 answer

TFS Gated checkin - prevent build being triggered for javascript file?

I am using TFS Gated checkins. I have noticed that every time a javascript file is checked-in, it also triggers the build and it wastes a lot of time. How can I prevent a build being triggered if a javascript file (or other similar file types) is…
1
vote
1 answer

TFS2010 gated check-in "failed to apply label" when adding new files

We're getting a 'Failed to apply label' in a Gated Check-in scenario, on an MVC3 project, when adding new files. After some Googling, it seems that it's because we're using a MSBuild script to do extra stuff:…
PeterG
  • 334
  • 5
  • 20
0
votes
1 answer

Check in gated changes failing every time in Azure DevOps

I am trying to enable Gated Check-in in Azure pipelines, my every check-in are failing on the final stage Check in gated changes with error [Error]The shelveset _Build_24;Build\BUILD-GUID-NUMBER could not be found for check-in I tried to find the…
0
votes
1 answer

How can we fetch the shelveset name during Gated check-in and assign it to a variable in tfs build task

We have a mapped workspace where each project is having multiple references to other projects. On the same workspace, we perform our whole product build nightly. When we enable gated check-in for individual projects, its creating a new workspace and…
0
votes
2 answers

Gated Push with Git in Azure DevOps

Currently we use a dev-Branch in TFVC where every developer checks in. We have a Gated Checkin which ensures that our project builds. Now we would like to switch to git, but TFS 2017 and Azure DevOps 2019 don´t have something similar to a Gated…
Martin
  • 1,283
  • 2
  • 14
  • 28