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
  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 | 5 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

  5. 0

    After several successful builds with the Git plugin 2.0 beta, one of my jobs failed to complete the checkout. It failed with a CheckoutConflictException and a stack trace. When I switched the job back to the command line git, with no intervening change to the central repository and with no change to the slave or its workspace, the job completed successfully. The console log shows: selected Git installation does not exists. Using Default Fetching changes from the remote Git repository Checking out Revision 3e9743ae51b0c098a3e484af09670c7b65801bff (origin/port-linux) FATAL: Could not checkout 3e9743ae51b0c098a3e484af09670c7b65801bff hudson.plugins.git.GitException: Could not checkout 3e9743ae51b0c098a3e484af09670c7b65801bff at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:164) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkoutBranch(JGitAPIImpl.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:275) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:256) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files: README-port-linux.org at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:244) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:162) ... 18 more Caused by: org.eclipse.jgit.errors.CheckoutConflictException: Checkout conflict with files: README-port-linux.org at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:411) at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391) at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:240) ... 19 more

    Jenkins JIRA | 3 years ago | Mark Waite
    hudson.plugins.git.GitException: Could not checkout 3e9743ae51b0c098a3e484af09670c7b65801bff

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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