问题
We migrated to TFS 2015 RTM recently and were successful in creating build pools, configuring build agents and build definitions.
During the build process, TFS performs Get Sources task and successfully completes the same and marks itself in green.
The problem begins here wherein the build process does not download the entire set of files and folders, picks few folders and downloads them completely and ignores the rest. We have set Clean option to True in the Repository tab of our build definition. Also have marked the files as mapped.
Any help or suggestions in resolving this issue would be great. Thanks in advance.
> 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\_work\9cf6b32b\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
回答1:
According to the log:
2015-12-17T11:53:49.4179203Z Done syncing repository Platform toversion C8496 (workspace version -1)
This seems to be a security related issue.
Please make sure "Project Collection Build Service" has the permission to access to your code folder. Refer to this article for details.
来源:https://stackoverflow.com/questions/34289298/tfs-remains-out-of-sync-after-get-sources-step