TFS 2015 build agent failing to sync TFVC

廉价感情. 提交于 2019-12-13 18:50:30

问题


For a specific project in my TFS 2015, a vNext build agent is unable to sync source code from the repository.

Only message I can see in log file is:

Starting: Get sources


Syncing repository: RDW (TFVC) Workspace Name: ws_d565d474_34;Build\1b470f52-2a65-4b67-a68a-b8c32cebcad5 Done syncing repository RDW to version C283662 (workspace version -1)

Note that "workspace version -1". If I check the work folder on my build agent server is empty (not even created). Still the workspace on TFS side is created (checked with TF). I checked the permissions assigned to the account I'm running the agent on and all seems fine.

I can't find anything in the log, nor on TFS, nor on agent computer. It is happening only for one project. I tried with a different build server but the outcome is the same.

Does anyone have any tip on what should I check in order to try to solve this problem?

Thanks


回答1:


I found the answer to my problem. I had the permission inheritance switched off on the folder in the source control under which all of my branches lied. I do analyse the problem in a bit more details here http://blog.majcica.com/2015/12/24/tfs-2015-build-agent-failing-syncing-the-repository/




回答2:


The build agent service account needs to be a member of the Build Service Accounts group.



来源:https://stackoverflow.com/questions/34416348/tfs-2015-build-agent-failing-to-sync-tfvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!