Due to a workspace path length limitation, I had to shorten the workspace path mappings used by one of my team builds. To my surprise, each time I launch my build, it's being somehow overwritten by with the previous path mappings.
I deleted the Team Foundation cache (C:\Documents and Settings\TFS_BuildService\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache) and launch the build to again see that my workspace had been overridden.
With no other solution, I desparately modified the workspace mappings directly in the Team Foundation Server database. But again, after launching my build my workspace path mappings were replaced by the old ones.
Anyone has any idea about this strange TFS behaviour I am encountering ?
Any help will be highly appreciated.
Have you tried to edit build definition in Visual Studio by right clicking on build in team explorer and selecting "Edit build"?
I remember that we faced similar problem and solution was to change folders there.