0
votes

I have TFS 2015, my issue just appeared after adding more teams into my team project with explicit permissions. So when I start the build eather using CI or manually it displays

Syncing repository: ProjectName (Git)

Starting fetch...

Response status code does not indicate success: 404 (Not Found).

Prepare repository failed with exception.

I've added the read permission to my collection build service account but with no luck.

If there is no solution to this problem, is there any way to reset all permissions to default

1
Did you verify the members are in stakeholder? Acc to this answer if the members are added as a stakeholders then this error will occurJayendran
Also try changing another account which have the read permission as the build agent service account, then try it again.Andy Li-MSFT
@Jayendran I added the account used by the build agent as basic, and it was me who made request the queue of the build(Basic user & Administrator), but with no luck. I've followed the answer you've shared before posting the question but with no luck.Yazid
@Andy Li-MSFT what do you mean by changing accountYazid
@Yazid Change the build agent service account (the account which you specified during deploy the agent).Andy Li-MSFT

1 Answers

0
votes

The solution was approximately similar to the This except in my case I needed to add

Project Collection Build Service with read Permission Allowed

Which means that even if you have the inherited permission from the collection or the team project, you must add the additional TFS group to the project permissions

Steps that need to be followed are:

1- Follow steps shared in the link 2- Add Project Collection Build Service with read Permission Allowed