Witaj na Zine.net online Zaloguj się | Rejestracja | Pomoc

TFS 2010 gated checkin & integration build [EN]

My case with continuous integration on TFS 2010 is simple: I want to provide a gated checkin as a first quality gate, and a full CI build as second. Since the project has lots of tests, where half of it are unfortunately database bound, it takes a lot of time to build and test.

To implement my desired build configuration, I defined a gated checkin build to compile and run basic set of tests.
It worked well, but second build which runs all tests in Debug and Release configuration did not start. What’s going on?

Well, it’s by design…
TFS team decided to switch off a CI build if gated one is successful by adding a “***NO_CI***” string to checkin comments. This string causes all CI build trigger defined to ignore this checkin. You can read more about this option on Buck Hodges blog post http://blogs.msdn.com/b/buckh/archive/2007/07/27/tfs-2008-how-to-check-in-without-triggering-a-build-when-using-continuous-integration.aspx.
In short the ***NO_CI*** string is useful if our build causes checkins on its own and we don’t want to start another build and end up in infinite loop.

To turn off the default gated build behavior and allow other builds to start, we need to edit a build template our build is based on and change the NoCIOption to “False”.
Opublikowane 11 listopada 2010 20:42 przez Bysza
Filed under:


Brak komentarzy

Komentarze anonimowe wyłączone

About Bysza