VSO Build — Response status code does not indicate

2020-04-13 01:20发布

问题:

Build always fails upon attempt to SYNC, Response status code does not indicate success: 404 (Not Found)

Repository Type is GIT, deployed an agent in local machine,

  • Repository Type is Microsoft GIT, hosted by same VSO
  • Agent can hook up with Visual Studio Team Services in cloud, i.e., Agent shows up in Default Pool
  • Visual Studio can SYNC from local machine where Agent is deployed
  • When new build is queued, agent failed upon attempt to sync

Build Definition:

  • Platform: $(BuildPlatform)
  • Configuration: $(BuildConfiguration)
  • Visual Studio Version: 2015
  • MSBuild Architecture: x64
  • Control Options: enabled: true

回答1:

Please check if "Project Collection Build Service" has "Read" permission to your code repository via following steps:

  1. Open your project from Web Portal.
  2. Click "Code" to open code panel.
  3. Right click on the repository and select "Security" option.
  4. Check the permission of "Project Collection Build Service".

Make sure "Read" permission is set to "Allow", otherwise you will get a 404 error as following:



回答2:

One additional thing I discovered is Stakeholders cannot access the repos, even if they have Reader or Contributor access by being part of the team. Access levels are controlled at the TFS configuration level under the Access Control tab. Simply remove them from the Stakeholders group and add them to the Basic (default) group, or some other more-specific group you have created.