我将一个集合从TFS 2012.2迁移到新的TFS 2015,我为该集合配置了XAML构建代理,当我尝试运行构建时,它在“Associate Changesets and Work Items”活动期间失败。
从堆栈跟踪中,我可以看到它无法更改工作项,我试图用一个小项目重现案例,但是它工作得很好但是工作正常吗?!
构建日志:
异常堆栈跟踪:at Microsoft.TeamFoundation.WorkItemTracking.Proxy.WorkItemServer.Update(字符串 requestId,XmlElement包,XmlElement&结果, MetadataTableHaveEntry [] metadataHave,String& dbStamp, IMetadataRowSets&安培;元数据)
在 Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.SendUpdatePackage(XmlElement的 包,XmlElement&结果,布尔大量)
在 Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.SaveWorkItems(工作项[] workitems,Boolean bulk,SaveFlags saveFlags)
在 Microsoft.TeamFoundation.WorkItemTracking.Client.BatchSaveHelper.TryUpdate(WorkItemStore store,WorkItem [] workitems,SaveFlags saveFlags,List`1 errors)
在 Microsoft.TeamFoundation.WorkItemTracking.Client.BatchSaveHelper.TryUpdate(WorkItemStore store,WorkItem [] workitems,SaveFlags saveFlags,List`1 errors)
在 Microsoft.TeamFoundation.WorkItemTracking.Client.BatchSaveHelper.BatchSave(WorkItemStore store,WorkItem [] workitems,SaveFlags saveFlags)
在 Microsoft.TeamFoundation.Build.Workflow.Activities.WitBatchSaveWorkItems.Execute(CodeActivityContext 上下文)
在System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance,ActivityExecutor executor,BookmarkManager bookmarkManager)
在 System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)
事件记录:
默认控制器 - tfsbuild:取消了工作流实例 使用ID构建vstfs:/// Build / Build / 430 {2da10eef-3c75-48ce-852B-78436a594f85}。例外 类型:System.NullReferenceException异常消息:对象引用 未设置为对象的实例。堆栈跟踪:at System.Activities.Statements.Throw.Execute(CodeActivityContext 上下文) System.Activities.CodeActivity.InternalExecute(ActivityInstance 实例,ActivityExecutor执行程序,BookmarkManager bookmarkManager) 在 System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)
答案 0 :(得分:0)
请按照以下步骤
1.)Stop the Build Service on the Build Machine
2.)Delete the folders inside the below path in build machine – C:\Users\
[BUILDSERVICEACCOUNT]\AppData\Local\Microsoft\TeamFoundation\5.0
3.)Start the Build Service on the Build Machine