views:

464

answers:

2
+1  Q: 

TFS Build Fails

We run TFS 2008 and Visual Studio 2010B2 (as with any Beta, errors are predominant).

Below are the errors given (from the build log):

Task "DeleteWorkspaceTask" 
DeleteWorkspaceTask 
TeamFoundationServerUrl="http://dev-svr:8080/" 
BuildUri="vstfs:///Build/Build/1679" 
Name="**ALICE_3_**" 
DeleteLocalItems=True 
TF14061: The workspace **ALICE_3_**;HELLO\TFSservice does not exist. 
Done executing task "DeleteWorkspaceTask". 

Task "DeleteWorkspaceTask" skipped, due to false condition; 
( '$(SkipInitializeWorkspace)'!='true' and ('$(CleanCompilationOutputOnly)' == 'true' or '$(SkipClean)' == 'true') ) 
was evaluated as ( 'false'!='true' and ('false' == 'true' or 'false' == 'true') ). 

Using "CreateWorkspaceTask" task from assembly 
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll". 
Task "CreateWorkspaceTask" 
CreateWorkspaceTask 
TeamFoundationServerUrl="http://dev-svr:8080/" 
BuildUri="vstfs:///Build/Build/1679" 
Name="**ALICE_3_**" 
BuildDirectory="c:\builds\science\SCIENCE\AB" 
SourcesDirectory="c:\builds\science\SCIENCE\AB\Sources" 
Comment="Workspace created by Team Build" 

C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(796,5,796,5): 
error : The path c:\builds\science\SCIENCE\AB\Sources is already mapped in workspace **ALICE_3**. 
[c:\builds\science\SCIENCE\AB\BuildType\TFSBuild.proj]

Any input would be appreciated, as this area of development isn't my forte.

Regards, Matt

A: 

From this Stack Overflow question:

Use the command line utility tf.

You can get a list of all workspaces by bringing up a Visual Studio Command Prompt and using the following command:

c:\>tf workspaces /owner:*

You should see your problem workspace in the list as well as it's owner.

You can delete the workspace with the following command:

C:\>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME
heavyd
This looks like a reasonible solution; however I'm often cautious of deleting workspaces manually. I think I'd rather have that process automated (I think the bug exists in the actual delete workspace)
A: 

After looking into in greater depth it looks as if the problem lies elsewhere:

Task "DeleteWorkspaceTask" DeleteWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="ALICE_3_" DeleteLocalItems=True TF14061: The workspace ALICE_3_;HELLO\TFSservice does not exist. Done executing task "DeleteWorkspaceTask". Task "DeleteWorkspaceTask" skipped, due to false condition; ( '$(SkipInitializeWorkspace)'!='true' and ('$(CleanCompilationOutputOnly)' == 'true' or '$(SkipClean)' == 'true') ) was evaluated as ( 'false'!='true' and ('false' == 'true' or 'false' == 'true') ). Using "CreateWorkspaceTask" task from assembly "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll". Task "CreateWorkspaceTask" CreateWorkspaceTask TeamFoundationServerUrl="http://dev-svr:8080/" BuildUri="vstfs:///Build/Build/1679" Name="ALICE_3_" BuildDirectory="c:\builds\science\SCIENCE\AB" SourcesDirectory="c:\builds\science\SCIENCE\AB\Sources" Comment="Workspace created by Team Build" C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(796,5,796,5): error : The path c:\builds\science\SCIENCE\AB\Sources is already mapped in workspace ALICE_3. [c:\builds\science\SCIENCE\AB\BuildType\TFSBuild.proj]

My initial thought was that the build attempted to delete a workspace which does not (yet) exist, however it would appear that it does exist and just failed to delete the previous verison of the build due to a mapping error. Any ideas as to where I can change this?

Thanks, Matt