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

Subversion plugin does not close all files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • subversion-plugin
    • None
    • Jenkins 2.8, windows

      I have issues that svn cannot open file because it is used by another process. This is jenkins process. There is folowing stack trace.

      Cleaning local Directory .
      java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts.
      at hudson.Util.deleteContentsRecursive(Util.java:237)
      at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:81)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:170)
      at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:183)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162)
      at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:988)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:969)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:945)
      at hudson.FilePath.act(FilePath.java:1018)
      at hudson.FilePath.act(FilePath.java:996)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:830)
      at hudson.scm.SCM.checkout(SCM.java:485)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      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:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.nio.file.FileSystemException: d:\work\jenkins\Hero android vk\workspace\.\.svn\svn.fdd9d029-5501-0010-b743-efffc94e5483.tmp: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом.

      at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
      at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
      at java.nio.file.Files.deleteIfExists(Unknown Source)
      at hudson.Util.tryOnceDeleteFile(Util.java:296)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:373)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:372)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392)
      at hudson.Util.deleteContentsRecursive(Util.java:232)
      ... 21 more

      It seems that svn plugin does not close all file streams/files.

            Unassigned Unassigned
            salos Sergey Solozhentsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: