2016-09-28 73 views
0

我正在使用TFS版本2015 SP3,并且在创建工作门控签入构建定义时遇到问题。当成功构建后检入变更集时,TFS门控签入失败

构建流程步骤为空以防止构建失败。

当构建成功时,构建服务器尝试检查指定的更改并失败。该错误信息是:

The shelveset _Build_56625;Build\ead50f13-855a-45bd-9417-778e04e6fdfe could not be found for check-in

从我可以收集它所要做的事实在构建服务器采用累积用户,而不是用户名的GUID。 (见下图)。

Error 生成日志

2016-09-27T14:22:59.3450903Z Checking if artifacts directory exists: C:\Agent_3\_work\1\a 
2016-09-27T14:22:59.3450903Z Deleting artifacts directory. 
2016-09-27T14:22:59.3607099Z Creating artifacts directory. 
2016-09-27T14:22:59.3607099Z Checking if test results directory exists: C:\Agent_3\_work\1\TestResults 
2016-09-27T14:22:59.3607099Z Deleting test results directory. 
2016-09-27T14:22:59.3763337Z Creating test results directory. 
2016-09-27T14:22:59.4232406Z Starting: Get sources 
2016-09-27T14:22:59.4544938Z Entering TfvcSourceProvider.PrepareRepositoryAsync 
2016-09-27T14:22:59.4544938Z localPath=C:\Agent_3\_work\1\s 
2016-09-27T14:22:59.4544938Z clean=True 
2016-09-27T14:22:59.4544938Z sourceVersion=68725 
2016-09-27T14:22:59.4544938Z mappingJson={"mappings":[{"serverPath":"$/xxx","mappingType":"map","localPath":"\\"}]} 
2016-09-27T14:22:59.4544938Z Syncing repository: xxx(TFVC) 
2016-09-27T14:22:59.4544938Z workspaceName=ws_1_18 
2016-09-27T14:23:00.3451244Z Undo any pending changes under workspace. 
2016-09-27T14:23:01.2669675Z No inconsistencies were found to clean up. 
2016-09-27T14:23:01.7044792Z Workspace Name: ws_1_18;Build\ead50f13-855a-45bd-9417-778e04e6fdfe 
2016-09-27T14:23:01.7669760Z tf unshelve Gated_2016-09-27_04.22.53.2745;MyDomain\MyUser 
2016-09-27T14:23:02.2413159Z edit: C:\Agent_3\_work\1\s\app\xxx\xxx.ts 
2016-09-27T14:23:02.5225711Z Successfully unshelved Gated_2016-09-27_04.22.53.2745;MyDomain\MyUser into workspace ws_1_18;Build\ead50f13-855a-45bd-9417-778e04e6fdfe 
2016-09-27T14:23:02.5225711Z tf get /version:68725 
2016-09-27T14:23:03.0187586Z tf shelve _Build_56625 /replace 
2016-09-27T14:23:03.1906333Z Successfully created new shelveset _Build_56625;Build\ead50f13-855a-45bd-9417-778e04e6fdfe 
2016-09-27T14:23:03.2999952Z Done syncing repository xxx to version 68725 (workspace version C68725) 
2016-09-27T14:23:03.2999952Z Leaving TfvcSourceProvider.PrepareRepositoryAsync 
2016-09-27T14:23:03.4093700Z Running tasks 

是......我读过:

On Premise Gated Check-in Fails with "The shelveset ... could not be found for check-in" - 但我不愿意抛售5年历史只是为了得到这工作。

https://social.msdn.microsoft.com/Forums/en-US/8016349e-88dd-4fe1-aa6b-13c8d897985f/tfs-2015-on-premise-gated-checkin-fails-with-the-shelveset-could-not-be-found-for-checkin?forum=tfsbuild - 这个问题给了我一些见解,但没有工作解决方案。

我们试图

  • 创建一个新的代理
  • Trowing离开本地工作区
+1

作品以及我的TFS15。由于我们没有您的环境,因此很难排除此问题。即使你提到创建一个新的团队项目不是你的解决方案。但是,您仍然可以创建一个用于测试的范围来缩小此问题,并查看门控签入构建是否适用于新创建的构建? –

+0

遇到过只发生在从TFS2013升级的项目集合上的问题,但与新创建的TFS 2015项目集合很好地配合。 –

+0

我创建了一个新项目,创建了一个新的构建定义,并添加了门控签入。然后签入一个新文件。生成失败,出现类似错误: [错误]无法找到shelveset _Build_56722; Build \ ead50f13-855a-45bd-9417-778e04e6fdfe登记 –

回答

0

我们问题的原因是在Tfs_Configuration数据库的双重身份构建。

用下面的查询,您可以检查双重身份:

SELECT * FROM tbl_Identity WHERE PartitionId = 1 AND TypeId = 8 
+0

哪个字段是翻倍的字段?(有几个身份标识符字段) – StingyJack

+0

Hi @StingyJack已经有一段时间了。你有类似的问题吗? –

+0

是的,但只有显示名称这样的东西是表中的愚蠢 – StingyJack