TFS 在 Get Sources 步骤后仍然不同步
TFS remains out of sync after Get Sources step
我们最近迁移到了 TFS 2015 RTM,并成功创建了构建池、配置构建代理和构建定义。
在构建过程中,TFS 执行 Get Sources 任务并成功完成,并将自身标记为绿色。
问题从这里开始,其中构建过程不会下载整套文件和文件夹,而是选择几个文件夹并完全下载它们,而忽略其余部分。
我们在构建定义的 Repository 选项卡中将 Clean 选项设置为 True。还将文件标记为已映射。
任何解决此问题的帮助或建议都将非常有用。提前致谢。
> 2015-12-17T11:51:44.4623378Z Starting: Get sources
2015-12-17T11:51:44.4779612Z Clean is set to true. Removing all repository folders.
2015-12-17T11:53:38.9214724Z Entering TfvcSourceProvider.PrepareRepositoryAsync
2015-12-17T11:53:38.9214724Z localPath=E:\agent\_workcf6b32b\Platform
2015-12-17T11:53:38.9214724Z clean=True
2015-12-17T11:53:38.9214724Z sourceVersion=C8496
2015-12-17T11:53:38.9214724Z mappingJson={"mappings":[{"serverPath":"$/Platform/Kernel/Release/350/src/Build","mappingType":"map"}]}
2015-12-17T11:53:38.9214724Z Syncing repository: Platform (TFVC)
2015-12-17T11:53:38.9214724Z workspaceName=ws_9cf6b32b_7
2015-12-17T11:53:46.6600633Z Workspace Name: ws_9cf6b32b_7;
2015-12-17T11:53:49.4179203Z Done syncing repository Platform to version C8496 (workspace version -1)
2015-12-17T11:53:49.4179203Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
根据日志:
2015-12-17T11:53:49.4179203Z Done syncing repository Platform toversion C8496 (workspace version -1)
这似乎是一个与安全相关的问题。
请确保 "Project Collection Build Service" 有权访问您的代码文件夹。详见this article。
在构建过程中,TFS 执行 Get Sources 任务并成功完成,并将自身标记为绿色。
问题从这里开始,其中构建过程不会下载整套文件和文件夹,而是选择几个文件夹并完全下载它们,而忽略其余部分。 我们在构建定义的 Repository 选项卡中将 Clean 选项设置为 True。还将文件标记为已映射。
任何解决此问题的帮助或建议都将非常有用。提前致谢。
> 2015-12-17T11:51:44.4623378Z Starting: Get sources
2015-12-17T11:51:44.4779612Z Clean is set to true. Removing all repository folders.
2015-12-17T11:53:38.9214724Z Entering TfvcSourceProvider.PrepareRepositoryAsync
2015-12-17T11:53:38.9214724Z localPath=E:\agent\_workcf6b32b\Platform
2015-12-17T11:53:38.9214724Z clean=True
2015-12-17T11:53:38.9214724Z sourceVersion=C8496
2015-12-17T11:53:38.9214724Z mappingJson={"mappings":[{"serverPath":"$/Platform/Kernel/Release/350/src/Build","mappingType":"map"}]}
2015-12-17T11:53:38.9214724Z Syncing repository: Platform (TFVC)
2015-12-17T11:53:38.9214724Z workspaceName=ws_9cf6b32b_7
2015-12-17T11:53:46.6600633Z Workspace Name: ws_9cf6b32b_7;
2015-12-17T11:53:49.4179203Z Done syncing repository Platform to version C8496 (workspace version -1)
2015-12-17T11:53:49.4179203Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
根据日志:
2015-12-17T11:53:49.4179203Z Done syncing repository Platform toversion C8496 (workspace version -1)
这似乎是一个与安全相关的问题。
请确保 "Project Collection Build Service" 有权访问您的代码文件夹。详见this article。