Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50921

Team Foundation Sercer plugin error: workspace is already mapped

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • tfs-plugin
    • None
    • Jenkins 2.107.1
      TFS-plugin 5.133.0
      matrix-plugin 1.13

      When using the TFS-plugin in combination with the Matrix plugin the first build of the project worked fine. But every new build of the same project throws this error:

      Creating workspace 'Hudson-iTrak(multi-browser)-MASTER' owned by 'ealjas'...
      Mapping '$/QA/iTrak/iTrak12' to local folder 'C:\wrkspc\iTrak(multi-browser)' in workspace 'Hudson-iTrak(multi-browser)-MASTER'...
      FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
      com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
      	at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:229)
      	at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:176)
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:1014)
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:950)
      	at hudson.plugins.tfs.model.MockableVersionControlClient.createWorkspace(MockableVersionControlClient.java:114)
      	at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:81)
      	at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:24)
      	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      	at hudson.plugins.tfs.model.Server.execute(Server.java:233)
      Caused: java.lang.RuntimeException
      	at hudson.plugins.tfs.model.Server.execute(Server.java:237)
      	at hudson.plugins.tfs.model.Workspaces.newWorkspace(Workspaces.java:109)
      	at hudson.plugins.tfs.actions.CheckoutAction.getProject(CheckoutAction.java:144)
      	at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:59)
      	at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
      	at hudson.scm.SCM.checkout(SCM.java:504)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      	at hudson.model.Run.execute(Run.java:1727)
      	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

       

      I have had no success with the workaround for this problem by deleting the workspace manually before building the project so a solution would be desirable.

          [JENKINS-50921] Team Foundation Sercer plugin error: workspace is already mapped

          eerik aljas created issue -
          eerik aljas made changes -
          Description Original: When using the TFS-plugin in combination with the Matrix plugin the first build of the projekt worked fine. But every new build of the same projekt throws this error:
          {code:java}
          FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path D:\jenkins\workspace\All_Targets\target\KDF is already mapped in workspace Hudson-target=KDF-KP0025_VisualStudio_VM;24865124-d1ea-4545-8285-2de5a102bff6.
          {code}
           

          There exists a workaround for this problem by deleting the workspace manually before building the project. But a solution would be desirable.
          New: When using the TFS-plugin in combination with the Matrix plugin the first build of the project worked fine. But every new build of the same project throws this error:
          {code:java}
          Creating workspace 'Hudson-iTrak(multi-browser)-MASTER' owned by 'ealjas'...
          Mapping '$/QA/iTrak/iTrak12' to local folder 'C:\wrkspc\iTrak(multi-browser)' in workspace 'Hudson-iTrak(multi-browser)-MASTER'...
          FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:229)
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:176)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:1014)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:950)
          at hudson.plugins.tfs.model.MockableVersionControlClient.createWorkspace(MockableVersionControlClient.java:114)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:81)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:24)
          at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
          at hudson.plugins.tfs.model.Server.execute(Server.java:233)
          Caused: java.lang.RuntimeException
          at hudson.plugins.tfs.model.Server.execute(Server.java:237)
          at hudson.plugins.tfs.model.Workspaces.newWorkspace(Workspaces.java:109)
          at hudson.plugins.tfs.actions.CheckoutAction.getProject(CheckoutAction.java:144)
          at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:59)
          at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1727)
          at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {code}
           

          There exists a workaround for this problem by deleting the workspace manually before building the project. But a solution would be desirable.
          eerik aljas made changes -
          Environment Original: Jenkins 2.89.3
          TFS-plugin 5.126.0
          matrix-plugin 1.12
          New: Jenkins 2.107.1
          TFS-plugin 5.133.0
          matrix-plugin 1.13
          eerik aljas made changes -
          Description Original: When using the TFS-plugin in combination with the Matrix plugin the first build of the project worked fine. But every new build of the same project throws this error:
          {code:java}
          Creating workspace 'Hudson-iTrak(multi-browser)-MASTER' owned by 'ealjas'...
          Mapping '$/QA/iTrak/iTrak12' to local folder 'C:\wrkspc\iTrak(multi-browser)' in workspace 'Hudson-iTrak(multi-browser)-MASTER'...
          FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:229)
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:176)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:1014)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:950)
          at hudson.plugins.tfs.model.MockableVersionControlClient.createWorkspace(MockableVersionControlClient.java:114)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:81)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:24)
          at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
          at hudson.plugins.tfs.model.Server.execute(Server.java:233)
          Caused: java.lang.RuntimeException
          at hudson.plugins.tfs.model.Server.execute(Server.java:237)
          at hudson.plugins.tfs.model.Workspaces.newWorkspace(Workspaces.java:109)
          at hudson.plugins.tfs.actions.CheckoutAction.getProject(CheckoutAction.java:144)
          at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:59)
          at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1727)
          at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {code}
           

          There exists a workaround for this problem by deleting the workspace manually before building the project. But a solution would be desirable.
          New: When using the TFS-plugin in combination with the Matrix plugin the first build of the project worked fine. But every new build of the same project throws this error:
          {code:java}
          Creating workspace 'Hudson-iTrak(multi-browser)-MASTER' owned by 'ealjas'...
          Mapping '$/QA/iTrak/iTrak12' to local folder 'C:\wrkspc\iTrak(multi-browser)' in workspace 'Hudson-iTrak(multi-browser)-MASTER'...
          FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path C:\wrkspc\iTrak(multi-browser)\SELENIUM_DRIVER\Windows_10chromelatest is already mapped in workspace Hudson-SELENIUM_DRIVER=Windows_10chromelatest-MASTER.
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:229)
          at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCache.checkForMappingConflicts(InternalCache.java:176)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:1014)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.createWorkspace(VersionControlClient.java:950)
          at hudson.plugins.tfs.model.MockableVersionControlClient.createWorkspace(MockableVersionControlClient.java:114)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:81)
          at hudson.plugins.tfs.commands.NewWorkspaceCommand.call(NewWorkspaceCommand.java:24)
          at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
          at hudson.plugins.tfs.model.Server.execute(Server.java:233)
          Caused: java.lang.RuntimeException
          at hudson.plugins.tfs.model.Server.execute(Server.java:237)
          at hudson.plugins.tfs.model.Workspaces.newWorkspace(Workspaces.java:109)
          at hudson.plugins.tfs.actions.CheckoutAction.getProject(CheckoutAction.java:144)
          at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:59)
          at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1727)
          at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          {code}
           

          I have had no success with the workaround for this problem by deleting the workspace manually before building the project so a solution would be desirable.
          eerik aljas made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Ian Williams made changes -
          Assignee Original: redsolo [ redsolo ]

            Unassigned Unassigned
            eerikaljas eerik aljas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: