为什么我的TFS构建标签在10次构建后从全局列表中消失了?为什么他们在标签上有一个斜线?

时间:2023-01-13 20:51:08

My build retention policy deletes Details, Drop Folder, and Symbols only, after 20 successful builds. However, my Global List with build labels is only retaining the last 10 builds. All builds were being retained in the global list before my recent upgrade from TFS 2010 to TFS 2013.

在20次成功构建之后,我的构建保留策略仅删除详细信息,删除文件夹和符号。但是,我的构建标签全局列表仅保留最后10个版本。在我最近从TFS 2010升级到TFS 2013之前,所有构建都保留在全局列表中。

I have verified that the builds are not being removed early - the drop folders still have all of the build items in them. If I use the label sidekick, I also still see the labels, so I think they are still there. They only seem to be dropped from the global list, making them unavailable for selection in work items.

我已经验证过早期没有删除构建 - drop文件夹中仍然包含所有构建项。如果我使用标签sidekick,我仍然看到标签,所以我认为他们仍然在那里。它们似乎只从全局列表中删除,使它们无法在工作项中进行选择。

Just in case there is a limit on items in the Global List, I just manually removed some of the older builds. That does not seem to have made a difference.

为了防止全局列表中的项目有限制,我只是手动删除了一些旧版本。这似乎没有什么不同。

Another thing I noticed, which is probably unrelated, but still annoying - the build labels now contain slashes where they didn't before. For example:

我注意到的另一件事,可能是无关的,但仍然很烦人 - 构建标签现在包含他们之前没有的斜线。例如:

Build generated in TFS 2010: OS.Main_20150423.3

在TFS 2010中生成的构建:OS.Main_20150423.3

Build generated in TFS 2013: OS.Main/OS.Main_20150511.1

在TFS 2013中生成的构建:OS.Main / OS.Main_20150511.1

This makes finding the new builds in the (rather long) global list more difficult, so I'd like to get rid of the slash. The build definition still shows the format without the extra "pre-slash" part:

这使得在(相当长的)全局列表中找到新构建更加困难,所以我想摆脱斜线。构建定义仍显示没有额外“pre-slash”部分的格式:

Build Number Format: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)

内部版本号格式:$(BuildDefinitionName)_ $(日期:yyyyMMdd)$(修订:.r)

Is there some new setting that could have been turned on during my upgrade?

我的升级过程中是否有一些可以打开的新设置?

I am still using TFS 2010 Build Controller and Build Agents.

我仍在使用TFS 2010构建控制器和构建代理。

1 个解决方案

#1


Build global list has a default size of 10 items. You can change this value by updating TFS registry setting. Here's the SQL script to do it:

构建全局列表的默认大小为10个项目。您可以通过更新TFS注册表设置来更改此值。这是执行它的SQL脚本:

DECLARE @registryUpdates typ_KeyValuePairStringTableNullable
INSERT @registryUpdates ([Key], [Value])
VALUES ('#\Service\WorkItemTracking\Settings\MaxBuildListSize\','<new value>')

EXEC prc_UpdateRegistry 1, 'Test', @registryUpdates, 1

You can either run it in the Tfs_Configuration database to set it at the server level or in the TFS collection database to set it only for that collection.

您可以在Tfs_Configuration数据库中运行它以在服务器级别或TFS集合数据库中设置它,以仅为该集合设置它。

#1


Build global list has a default size of 10 items. You can change this value by updating TFS registry setting. Here's the SQL script to do it:

构建全局列表的默认大小为10个项目。您可以通过更新TFS注册表设置来更改此值。这是执行它的SQL脚本:

DECLARE @registryUpdates typ_KeyValuePairStringTableNullable
INSERT @registryUpdates ([Key], [Value])
VALUES ('#\Service\WorkItemTracking\Settings\MaxBuildListSize\','<new value>')

EXEC prc_UpdateRegistry 1, 'Test', @registryUpdates, 1

You can either run it in the Tfs_Configuration database to set it at the server level or in the TFS collection database to set it only for that collection.

您可以在Tfs_Configuration数据库中运行它以在服务器级别或TFS集合数据库中设置它,以仅为该集合设置它。