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

Build Started by an SCM Change is Failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • Development

      I configured the java project for the automated build and initiated the build. The result was awesome successfully generated the artifact. I did change in my program and SCM initiated the build which resulted in below error.

      I thought it could be problem with the configuration so wanted to delete the project and configure again. Jenkins in not allowing me to delete the project and i am getting same error.

      I configured other project again by renaming. First build works find but after i am done with the changes and commit to SVN, SCM initiates build which is fine but it again fails with below error. Could you please help or let me know what can i do to fix it?

      Interesting observation:

      1. I am getting this error on latest version of Jenkins installed on my local i.e 1.612.
      2. Same configuration works properly on Jenkins 1.59x. I am not sure what could be a cause only difference between two version is that i have tried installing Subversion Feature on 1.6 on my local but i ended up with below error hence i am confident enough to install this plugin in production as its failing on my local.

      java.nio.file.FileSystemException: <http://localhost:8080/job/Dev_75_YTFeature01/ws/src>: The process cannot access the file because it is being used by another process.

      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.delete(Unknown Source)
      at java.nio.file.Files.delete(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor903.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.Util.deleteFile(Util.java:247)
      at hudson.Util.deleteRecursive(Util.java:310)
      at hudson.Util.deleteContentsRecursive(Util.java:212)
      at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:479)
      at hudson.scm.SubversionReleaseSCM$CheckOutTask.invoke(SubversionReleaseSCM.java:414)
      at hudson.FilePath.act(FilePath.java:991)
      at hudson.FilePath.act(FilePath.java:969)
      at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:407)
      at hudson.scm.SubversionReleaseSCM.checkout(SubversionReleaseSCM.java:356)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)

            bballi Bob Balli
            bballi Bob Balli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: