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

No support for parallel builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: tfs-plugin
    • Labels:
    • Environment:
      Windows 2012 R2
      Jenkins 2.13
      tfs-plugin 4.0.0
    • Similar Issues:

      Description

      If I set "Execute concurrent builds if necessary" checkbox to ON, I get the below exception.

      It would appear to me the TFS plugin does not support parallel builds on Windows.

      
      FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for D:\Jenkins\jobs\MasterBranch\jobs\TheTPS\jobs\TPS\workspace@2.
      java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for D:\Jenkins\jobs\MasterBranch\jobs\TheTPS\jobs\TPS\workspace@2.
      	at hudson.plugins.tfs.model.Server.execute(Server.java:110)
      	at hudson.plugins.tfs.model.Project.getFiles(Project.java:177)
      	at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:54)
      	at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:221)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      	at hudson.model.Run.execute(Run.java:1720)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Caused by: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for D:\Jenkins\jobs\MasterBranch\jobs\TheTPS\jobs\TPS\workspace@2.
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:737)
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:2154)
      	at hudson.plugins.tfs.model.MockableVersionControlClient.getWorkspace(MockableVersionControlClient.java:93)
      	at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:57)
      	at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17)
      	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      	at hudson.plugins.tfs.model.Server.execute(Server.java:106)
      	... 11 more
      

        Attachments

          Activity

          Hide
          kelliejos Kellie Jos added a comment -

          Thank you for using the tfs-plugin. It appears that your issue was found in an older version of the plugin. There have been a number of improvements made in the recent releases that may have resolved your issue. Please update to the most recent 5.126.0 release. If your issue persists, please open a new ticket and we will investigate.

          Show
          kelliejos Kellie Jos added a comment - Thank you for using the tfs-plugin. It appears that your issue was found in an older version of the plugin. There have been a number of improvements made in the recent releases that may have resolved your issue. Please update to the most recent 5.126.0 release. If your issue persists, please open a new ticket and we will investigate.
          Hide
          flocki Florian Pepping added a comment - - edited

          Hi,

          unfortunately I can confirm the bug/problem with the latest Jenkins and TFS-Versions.
          Environment is:

          • Windows Server 2012 R2
            Java HotSpot(TM) 64-Bit Server VM (1.8.0_151)
          • Jenkins ver. 2.121.1
          • TFS Plugin 5.133.0

          Having a number of parallel build jobs some of them always fail. For me it looks like there's missing some kind of synchronization in the right place of the Hudson TFS-Plugin. For me a potential synchronization point could be MockableVersionControlClient.

          Below ist the stack trace I get:
          com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for C:\TFS-Workspaces\<projectname>.
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:699)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:1964)
          at hudson.plugins.tfs.model.MockableVersionControlClient.getWorkspace(MockableVersionControlClient.java:197)
          at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:69)
          at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:18)
          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.Project.getFiles(Project.java:264)
          at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:63)
          at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
          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:1794)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)

           

          If you need some further information or background, feel free to ask. I'll try to provide the information as far as possible to me. Additionally I can test potential solutions on my build server if requried.

          Show
          flocki Florian Pepping added a comment - - edited Hi, unfortunately I can confirm the bug/problem with the latest Jenkins and TFS-Versions. Environment is: Windows Server 2012 R2 Java HotSpot(TM) 64-Bit Server VM (1.8.0_151) Jenkins ver. 2.121.1 TFS Plugin 5.133.0 Having a number of parallel build jobs some of them always fail . For me it looks like there's missing some kind of synchronization in the right place of the Hudson TFS-Plugin. For me a potential synchronization point could be MockableVersionControlClient. Below ist the stack trace I get: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for C:\TFS-Workspaces\<projectname>. at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:699) at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:1964) at hudson.plugins.tfs.model.MockableVersionControlClient.getWorkspace(MockableVersionControlClient.java:197) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:69) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:18) 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.Project.getFiles(Project.java:264) at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:63) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) 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:1794) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)   If you need some further information or background, feel free to ask. I'll try to provide the information as far as possible to me. Additionally I can test potential solutions on my build server if requried.
          Hide
          kelliejos Kellie Jos added a comment -

          Hi,

          Thank you for reporting this and providing the stack trace!  We will investigate.

           

          Show
          kelliejos Kellie Jos added a comment - Hi, Thank you for reporting this and providing the stack trace!  We will investigate.  

            People

            • Assignee:
              kelliejos Kellie Jos
              Reporter:
              apgray Andrew Gray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: