{"id":2123,"date":"2007-07-27T08:00:00","date_gmt":"2007-07-27T08:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/07\/27\/tfs-2008-how-to-check-in-without-triggering-a-build-when-using-continuous-integration\/"},"modified":"2007-07-27T08:00:00","modified_gmt":"2007-07-27T08:00:00","slug":"tfs-2008-how-to-check-in-without-triggering-a-build-when-using-continuous-integration","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/tfs-2008-how-to-check-in-without-triggering-a-build-when-using-continuous-integration\/","title":{"rendered":"TFS 2008: How to check in without triggering a build when using continuous integration"},"content":{"rendered":"<p>If part of your build process is to check in a file, such as an updated version file, you wouldn&#8217;t want that checkin to kick off another build.&nbsp; You&#8217;d be stuck in an infinite loop.<\/p>\n<p>To prevent that problem, simply put the string <font face=\"Courier New\">***NO_CI***<\/font> in the checkin comment.&nbsp; The code that examines a changeset to determine whether to kick off a new build will skip any changeset with that string in the comment.<\/p>\n<p><strong>[Update 07\/02\/2008]<\/strong>&nbsp; If you are making a checkin as part of the build process, you can use $(NoCICheckinComment).&nbsp; That property is set at run time when the build agent starts msbuild.&nbsp; I had forgotten about it until a reader pointed this out.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:7b33f70f-f58a-4acc-a62f-fd106eaa987c\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20build\" rel=\"tag\">team build<\/a>, <a href=\"http:\/\/technorati.com\/tags\/tfs%202008\" rel=\"tag\">tfs 2008<\/a>, <a href=\"http:\/\/technorati.com\/tags\/continuous%20integration\" rel=\"tag\">continuous integration<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If part of your build process is to check in a file, such as an updated version file, you wouldn&#8217;t want that checkin to kick off another build.&nbsp; You&#8217;d be stuck in an infinite loop. To prevent that problem, simply put the string ***NO_CI*** in the checkin comment.&nbsp; The code that examines a changeset to [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,8],"class_list":["post-2123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>If part of your build process is to check in a file, such as an updated version file, you wouldn&#8217;t want that checkin to kick off another build.&nbsp; You&#8217;d be stuck in an infinite loop. To prevent that problem, simply put the string ***NO_CI*** in the checkin comment.&nbsp; The code that examines a changeset to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2123"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}