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

Builds can't checkout any more: Delete branch returned unexpected result LOCK_FAILURE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • git-client-plugin
    • None
    • git-plugin: 3.9.0
      git-client-plugin: 2.7.2
      Jenkins: 2.121

      Since the Git updates today Multibranch Pipeline builds (at least, haven't tried other builds) fail with the exception:

      Setting origin to git@gitlab:xxx/yyy.git
      Fetching origin...
      org.eclipse.jgit.api.errors.JGitInternalException: Delete branch returned unexpected result LOCK_FAILURE
      	at org.eclipse.jgit.api.DeleteBranchCommand.call(DeleteBranchCommand.java:172)
      	at org.jenkinsci.plugins.gitclient.JGitAPIImpl$2.execute(JGitAPIImpl.java:620)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:394)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:301)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:100)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:298)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

      Switching to the git cli implementation is not an option for me because that is not available on all the platforms I require (while JGit is).

            Unassigned Unassigned
            cobexer Ing. Christoph Obexer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: