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

java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • tomcat/centos

      Hello,

      On the latest version 1.546 for a maven build I get this error:

      Started by user anonymous
      ln builds/lastSuccessfulBuild /home/dev/.jenkins/jobs/MyBuild/lastSuccessful failed
      java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1116)
      	at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at hudson.Util.createSymlinkJava7(Util.java:1146)
      	at hudson.Util.createSymlink(Util.java:1064)
      	at hudson.model.Run.createSymlink(Run.java:1783)
      	at hudson.model.Run.updateSymlinks(Run.java:1764)
      	at hudson.model.Run.execute(Run.java:1676)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      ln builds/lastStableBuild /home/dev/.jenkins/jobs/MyBuild/lastStable failed
      java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastStable
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:241)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1116)
      	at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at hudson.Util.createSymlinkJava7(Util.java:1146)
      	at hudson.Util.createSymlink(Util.java:1064)
      	at hudson.model.Run.createSymlink(Run.java:1783)
      	at hudson.model.Run.updateSymlinks(Run.java:1765)
      	at hudson.model.Run.execute(Run.java:1676)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Building in workspace /home/dev/.jenkins/jobs/MyBuild/workspace
      Updating svn://myweb.com/repos/Events/trunk at revision '2014-01-10T15:06:09.745 +0000'
      At revision 1974
      WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
      no change for svn://myweb.com/repos/Events/trunk since the previous build
      Parsing POMs
      

      It does not seem to get the latest update from the svn.

      Switching back to 1.544 fixed the issue.

      Cheers Greg

          [JENKINS-21330] java.nio.file.DirectoryNotEmptyException: /home/dev/.jenkins/jobs/MyBuild/lastSuccessful

            Unassigned Unassigned
            gregh3269 Greg Huber
            Votes:
            21 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated: