0

I have a build agent installed on a server running as 'VSTSBuildAgent' account. I am currently using this build agent to run scheduled releases in VS GIT every day with no issue.

However now I am trying to build code that's in my team foundation version control repository.

I have selected my project and selected which mapping I want.

VSO Source Mapping

I've made sure that the build agent user has permissions to the Trunk branch, and made sure it has build permissions ext.

When I run the build I get the following output; Build Output

However when I look on the server in the build agent files, the folder

C:\VSTSAgent_work\3\s

There's nothing there.

Any suggestions as to what I'm missing?

Sjharrison
  • 729
  • 3
  • 16
  • 39
  • 1
    Go to version control security page (https://[account].visualstudio.com/[project]/_admin/_versioncontrol) and check Project Collection Build Service and Project Collection Build Service Accounts permission (Read) – starian chen-MSFT May 23 '17 at 04:16
  • Only Project Collection Build Service Accounts group exists the first one doesn't, the account has read permissions and i've even added the build agent user to the group and given it all the permissions. Still not working – Sjharrison May 26 '17 at 11:25
  • 1. What's the result if you queue build with Hosted Build agent? 2. Try to add Project Collection Build Service account to team project (Version control > Add > Add User> Select Project Collection Build Service) 3. Try to change build account to Network Service. – starian chen-MSFT May 29 '17 at 01:56
  • Also, try to go to version control security page, then select 3Sys folder > Click Inheritance > Check selected option (On or Off), also check this folder's permission. – starian chen-MSFT May 29 '17 at 02:17
  • @starain-MSFT Hello, I added the account you suggested to the admin version control area and gave it permissions and it fixed the issue, if you write it as an answer i'll mark is as correct – Sjharrison Jun 28 '17 at 14:06

0 Answers0