Search code examples
tfsbuildtfsbuild

TFS 2015 Build is not getting the Mapped path


For some reason my build definition are not working properly if long path mappings. If I were using the path $/Project/Samples it works OK.

My build has this in the repository tab: enter image description here

Then the logs show that there is no SLN found, and I confirmed that nothing was downloaded to the agent working folders: enter image description here

For me it's a bug when getting sources, as I can't see a good why it is not getting correctly the files. I already tried to add files in some folders above and it works. Some ideas?


Solution

  • "workspace version -1" usually occurs when there is no permission to access to the source control. Check the "Inheritance" settings for the folders in your source control and make sure it is set to "On". Refer to this link for details: TFS 2015 Build Agent failing syncing the repository.

    Similar question here: TFS 2015 build agent failing to sync TFVC.