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

jenkins git does not release pack files, prevents wiping workspace

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • git-plugin
    • None
    • Windows XP Slave with msysgit v 1.7.11
      Windows 7 32-Bit SP1 with msysgit 1.7.9
      Windows Server 2008 with msysgit 1.8.0-preview20121012

      When building a job with a git branch specifier that ends with a wildcard (ie origin/feature/* or origin/feature*) jenkins never releases its hold on .git/object/pack/.pack files. This causes the next build to not be able to wipe the workspace. This is not a problem if the branch specifier does not end with a wildcard.

      The *.pack file cannot be deleted until the javaw.exe process (JNLP connection to jenkins) is killed.

      The only way I have been able to get by is to not wipe the workspace before builds.

      This is the stack trace that this causes...

      Using strategy: Default
      Last Built Revision: Revision cfd6d3ea8c621905444d4e84b4718bf5d40cbe59 (origin/feature/jeff-test)
      Wiping out workspace first.
      hudson.util.IOException2: remote file operation failed: E:\jenkins\workspace\VoiceFirst-WebServices-feature at hudson.remoting.Channel@3007615c:VHS-Lab-YosWin0
      at hudson.FilePath.act(FilePath.java:838)
      at hudson.FilePath.act(FilePath.java:824)
      at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1044)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1200)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1248)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
      at hudson.model.Run.execute(Run.java:1484)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)
      Caused by: java.io.IOException: Unable to delete E:\jenkins\workspace\VoiceFirst-WebServices-feature\.git\objects\pack\pack-7afe54f6a971bd2518f1713140acd04dee21882c.pack
      at hudson.Util.deleteFile(Util.java:237)
      at hudson.Util.deleteRecursive(Util.java:287)
      at hudson.Util.deleteContentsRecursive(Util.java:198)
      at hudson.Util.deleteRecursive(Util.java:278)
      at hudson.Util.deleteContentsRecursive(Util.java:198)
      at hudson.Util.deleteRecursive(Util.java:278)
      at hudson.Util.deleteContentsRecursive(Util.java:198)
      at hudson.Util.deleteRecursive(Util.java:278)
      at hudson.Util.deleteContentsRecursive(Util.java:198)
      at hudson.FilePath$12.invoke(FilePath.java:922)
      at hudson.FilePath$12.invoke(FilePath.java:920)
      at hudson.FilePath.act(FilePath.java:842)
      at hudson.FilePath.act(FilePath.java:824)
      at hudson.FilePath.deleteContents(FilePath.java:920)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1057)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2180)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:287)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at hudson.remoting.Engine$1$1.run(Engine.java:60)
      at java.lang.Thread.run(Thread.java:662)

          [JENKINS-15103] jenkins git does not release pack files, prevents wiping workspace

          Jeff Koenig created issue -
          Deepak Arora made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Deepak Arora made changes -
          Environment Original: Windows XP Slave with msysgit v 1.7.11 New: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Kevin Burge made changes -
          Environment Original: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          New: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Windows Server 2008 with msysgit 1.8.0-preview20121012
          Omid RA made changes -
          Environment Original: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Windows Server 2008 with msysgit 1.8.0-preview20121012
          New: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Windows Server 2008 with msysgit 1.8.0-preview20121012
          Red Hat 5 slave with standard git version 1.7.4.1
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-19994 [ JENKINS-19994 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-18843 [ JENKINS-18843 ]
          Mark Waite made changes -
          Environment Original: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Windows Server 2008 with msysgit 1.8.0-preview20121012
          Red Hat 5 slave with standard git version 1.7.4.1
          New: Windows XP Slave with msysgit v 1.7.11
          Windows 7 32-Bit SP1 with msysgit 1.7.9
          Windows Server 2008 with msysgit 1.8.0-preview20121012
          Mark Waite made changes -
          Summary Original: jenkins slave process does not let go of .git\objects\pack\*.pack file causeing "Unable to delete" when wiping workspace New: jenkins slave does not release pack files, prevents wiping workspace

            ndeloof Nicolas De Loof
            jkoenig Jeff Koenig
            Votes:
            10 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: