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
0
votes
0 answers

How to set the new code period to the last green quality gate

We are using Sonarqube 8.0 and TFS together with gated checkins. So when I check in a version of the code that makes the quality gate red, we break the build and the checkin gets rejected. But if I check in the exact same code again, sonarqube only…
modmoto
  • 2,901
  • 7
  • 29
  • 54
0
votes
1 answer

Why is my gated check in failing to run the final check in task?

I am having difficulties with the last two projects I have created using gated check-ins in Azure DevOps. The error I receive: [Error]The shelveset [ommitted] could not be found for check-in We are using an onpremises agent and the last two projects…
DrollDread
  • 321
  • 4
  • 22
0
votes
1 answer

Why does TFS 2017 Gated Build Definition fails to checkin the files belonging to multiple workspace?

Previously the XAML Gated Build used to checkin the files belonging to multiple workspaces in TFS of differenct solution with one gated build definition only. What i mean to say is like developers used to checkin multiples files in TFS with one…
SRP
  • 999
  • 4
  • 21
  • 39
0
votes
1 answer

Getting Error Message When Building In TFS

I am having an issue where virtually every Package during the nuget restore (when building on TFS agent) is being marked as not compatible. Why would this be the case? This builds perfectly on my local machine but will not work when in TFS. It…
0
votes
1 answer

Getting only partial Shelveset in vNext Build

I'm facing the following issue. We have a Gated Check-In setup which means changes are not directly checked-in, but a Shelveset is created and a build is run against that shelve. Only if the build is successful, the changes are checked in. Now we…
huserben
  • 1,034
  • 1
  • 10
  • 19
0
votes
1 answer

TFS 2017 - Scheduled build fails some unit tests, Gated checkin works

I have a Winforms application (MVP architecture) using .NET 4.6.2 and C#7 enabled. In TFS 2017 we have 2 build definitions for the app: 1. a Gated checkin - which works all the time. 2 A Scheduled build that runs at 11PM Mon-Fri. - which doesn't…
Scott
  • 924
  • 3
  • 8
  • 28
0
votes
1 answer

Trigger two build definition with one check in - Continuous Integration TFS

I have two build definition "A" and "B". I marked "A" to be triggered (Gated Check-in) when the check in include files under "src\ProjectA" and "B" to be triggered when the check in include files under "src\ProjectB". It's working as expected when…
Aviram Fireberger
  • 3,910
  • 5
  • 50
  • 69
0
votes
0 answers

Assembly Load exception in unit test project

In solution, I have three projects plugin, workflow, unit test. In plugin and workflow, I am using newtonsoft json assembly. but in unittest project, I am not using newtonsoft json assembly. In plug in and workflow projects, I am calling external…
Sagar
  • 137
  • 1
  • 12
0
votes
1 answer

TFS not honoring /author argument with gated build

We'd like to have a process like the following: User submits code review with shelveset of changes they want to be in master branch. If code passes review, select group of users can pull down the shelveset, and merge the changes into master using…
Ocelot20
  • 10,510
  • 11
  • 55
  • 96
0
votes
2 answers

The shelveset could not be unshelved

I'm using TFS 2013 to build an MVC application and while trying to do a check-in, sometimes, this error occurs. This only happens when it's configured to do a Gated Check-in and when I turn it off, it just works, but sooner or later it comes back…
0
votes
1 answer

TFS Gated Checkin fails when checking in the changeset after a succesfull build

I'm working with TFS version 2015 SP3 and I'm having problems with creating a working Gated Checkin Build definition. The Build proces steps are empty to prevent a failing build. When the Build succeeds de build server tries to check in de gated…
Ralf de Kleine
  • 11,464
  • 5
  • 45
  • 87
0
votes
2 answers

TFS: How to validate if every file is checked-in?

We are working on several ASP.NET MVC C# projects within Visual Studio 2015 and Team Foundation Server 2013. Sometimes the NuGet upgrade process is a mess and some of the replaced files (mostly *.png, *.gif, *.ttf) have not been checked-in properly.…
0
votes
2 answers

Gated checkin won't build

I have a project that is using a blog service. In this service, there is an object that is of type System.Runtime.Serialization.IExtensibleDataObject. This is all fine and I can build my project locally and publish it (and both work when running…
Pete
  • 57,112
  • 28
  • 117
  • 166
0
votes
1 answer

TFS 2015 Gated Checkin Build Issue

I am having and issue with TFS 2015 doing a continuous integration build. I have added 3 projects to my Questionnaires solution which are meant to be shared code between other solutions as well. Therefore those projects each have their own folder…
Danny Ellis Jr.
  • 1,674
  • 2
  • 23
  • 38
0
votes
0 answers

Gated builds - How to not change the Integration Build field?

When I have defined a Gated Build, when somebody checks in code the Integration Build field of a work item changes to the Gated Build number (if the developer associates his check in with work items, of course). Once a CI build is triggered this…
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121