{"id":1303,"date":"2008-10-20T08:00:00","date_gmt":"2008-10-20T08:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2008\/10\/20\/tfs-2008-sp1-new-setting-to-delete-a-build-without-deleting-the-build-label\/"},"modified":"2008-10-20T08:00:00","modified_gmt":"2008-10-20T08:00:00","slug":"tfs-2008-sp1-new-setting-to-delete-a-build-without-deleting-the-build-label","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/tfs-2008-sp1-new-setting-to-delete-a-build-without-deleting-the-build-label\/","title":{"rendered":"TFS 2008 SP1: New setting to delete a build without deleting the build label"},"content":{"rendered":"<p>We&#8217;ve heard from a few customers that they would prefer not to have the build labels deleted when builds are deleted.&nbsp; In Team Foundation Server 2008 SP1 we added a feature to control whether build labels are deleted when the build is deleted.&nbsp; This feature is really a stop-gap measure, and it changes the behavior for build deletion on the entire server (i.e., you cannot change it for particular build definitions).&nbsp; In TFS 2010, we&#8217;ve added GUI options to allow you to control this for each build definition, and the setting is stored in the database along with the build definition.<\/p>\n<p>To use the feature in 2008 SP1, add the following to the appSettings section in the web.config on the server (application tier).<\/p>\n<blockquote>\n<p>&lt;appSettings&gt;<\/p>\n<p>&nbsp; &lt;add key=&#8221;PreserveLabelsOnBuildDeletion&#8221; value=&#8221;true&#8221; \/&gt;<\/p>\n<p>&lt;\/appSettings&gt;<\/p>\n<\/blockquote>\n<p>It&#8217;s not clear at this point whether the TFS 2010 upgrade process will be able to automatically migrate this setting to the build definitions.&nbsp; In the worst case, you may need to enable this setting on each build definition after upgrading to TFS 2010.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:32005198-8a13-4f2e-82e3-c46130f401fa\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/team%20foundation%20server%202008%20sp1\" rel=\"tag\">team foundation server 2008 sp1<\/a>,<a href=\"http:\/\/technorati.com\/tags\/team%20build\" rel=\"tag\">team build<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve heard from a few customers that they would prefer not to have the build labels deleted when builds are deleted.&nbsp; In Team Foundation Server 2008 SP1 we added a feature to control whether build labels are deleted when the build is deleted.&nbsp; This feature is really a stop-gap measure, and it changes the behavior [&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-1303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>We&#8217;ve heard from a few customers that they would prefer not to have the build labels deleted when builds are deleted.&nbsp; In Team Foundation Server 2008 SP1 we added a feature to control whether build labels are deleted when the build is deleted.&nbsp; This feature is really a stop-gap measure, and it changes the behavior [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/1303","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=1303"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/1303\/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=1303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=1303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=1303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}