hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend

Jenkins JIRA | Ferry Huberts | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have cgit builds, 1 that uses the git submodule and 1 that uses a fast snapshot download of git to build cgit. Because the snapshot download is untarred into the same (submodule) directory, a checkout of a new fails. This seems to have changed somewhere right at or after the 1.500 release because before it worked fine. log: Started by an SCM change Building in workspace /var/lib/jenkins/workspace/cgit_upstream_get-git_master Checkout:cgit_upstream_get-git_master / /var/lib/jenkins/workspace/cgit_upstream_get-git_master - hudson.remoting.LocalChannel@77ed71cb Using strategy: Default Last Built Revision: Revision e1e0e038fd0fee3fe10524d7466deab03e78deb5 (origin/master) Fetching changes from 1 remote Git repository Pruning obsolete local branches Commencing build of Revision b60e6bff75719a5fb0df970bac3be6b2726cf73a (origin/master) Checking out Revision b60e6bff75719a5fb0df970bac3be6b2726cf73a (origin/master) Cleaning workspace FATAL: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:310) at hudson.plugins.git.GitAPI.clean(GitAPI.java:248) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1364) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.eclipse.jgit.api.ResetCommand.checkoutIndex(ResetCommand.java:361) at org.eclipse.jgit.api.ResetCommand.call(ResetCommand.java:204) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:304) ... 14 more Caused by: org.eclipse.jgit.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.eclipse.jgit.dircache.DirCacheCheckout.cleanUpConflicts(DirCacheCheckout.java:873) at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:413) at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391) at org.eclipse.jgit.api.ResetCommand.checkoutIndex(ResetCommand.java:359) ... 16 more

    Jenkins JIRA | 4 years ago | Ferry Huberts
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend
  2. 0

    [JENKINS-17359] Git plugin: add 'clean before checkout' option - Jenkins JIRA

    jenkins-ci.org | 10 months ago
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend
  3. 0

    I have cgit builds, 1 that uses the git submodule and 1 that uses a fast snapshot download of git to build cgit. Because the snapshot download is untarred into the same (submodule) directory, a checkout of a new fails. This seems to have changed somewhere right at or after the 1.500 release because before it worked fine. log: Started by an SCM change Building in workspace /var/lib/jenkins/workspace/cgit_upstream_get-git_master Checkout:cgit_upstream_get-git_master / /var/lib/jenkins/workspace/cgit_upstream_get-git_master - hudson.remoting.LocalChannel@77ed71cb Using strategy: Default Last Built Revision: Revision e1e0e038fd0fee3fe10524d7466deab03e78deb5 (origin/master) Fetching changes from 1 remote Git repository Pruning obsolete local branches Commencing build of Revision b60e6bff75719a5fb0df970bac3be6b2726cf73a (origin/master) Checking out Revision b60e6bff75719a5fb0df970bac3be6b2726cf73a (origin/master) Cleaning workspace FATAL: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:310) at hudson.plugins.git.GitAPI.clean(GitAPI.java:248) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1364) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.eclipse.jgit.api.ResetCommand.checkoutIndex(ResetCommand.java:361) at org.eclipse.jgit.api.ResetCommand.call(ResetCommand.java:204) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:304) ... 14 more Caused by: org.eclipse.jgit.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend at org.eclipse.jgit.dircache.DirCacheCheckout.cleanUpConflicts(DirCacheCheckout.java:873) at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:413) at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391) at org.eclipse.jgit.api.ResetCommand.checkoutIndex(ResetCommand.java:359) ... 16 more

    Jenkins JIRA | 4 years ago | Ferry Huberts
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with file: Cannot delete file: git/.depend
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.jgit.errors.CheckoutConflictException

      Checkout conflict with file: Cannot delete file: git/.depend

      at org.eclipse.jgit.dircache.DirCacheCheckout.cleanUpConflicts()
    2. JGit - Core
      ResetCommand.call
      1. org.eclipse.jgit.dircache.DirCacheCheckout.cleanUpConflicts(DirCacheCheckout.java:873)
      2. org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:413)
      3. org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391)
      4. org.eclipse.jgit.api.ResetCommand.checkoutIndex(ResetCommand.java:359)
      5. org.eclipse.jgit.api.ResetCommand.call(ResetCommand.java:204)
      5 frames
    3. org.jenkinsci.plugins
      JGitAPIImpl.clean
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.clean(JGitAPIImpl.java:304)
      1 frame
    4. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.clean(GitAPI.java:248)
      2. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1213)
      3. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196)
      3 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:865)
      2. hudson.FilePath.act(FilePath.java:838)
      2 frames
    6. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196)
      1 frame
    7. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1364)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670)
      2 frames
    8. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575)
      2. hudson.model.Run.execute(Run.java:1575)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:237)
      5 frames