| We just ran into this with a Jenkins instance running as Local System on Windows, with v4.0.0 of the TFS plugin. Just deleting the 'bad' workspace entries with 'tf workspace /delete' is not enough; as noted by posix phonix there is a cache file on the system which must be also cleaned up. The Local System profile is at %WINDIR%\system32\config\systemprofile. We were able to edit %WINDIR%\system32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0\Cache\VersionControl.config on the problem host to remove the bad workspace entries, restart the Jenkins agent and then rerun our build. |