"stderr: fatal: reference is not a tree" error in jenkins

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      While building project after raising PR on git, jobs fail intermittently with the following failures, though the frequency is low but it becomes annoying:

      17:42:27  > /usr/bin/git config --get remote.origin.url # timeout=10
      17:42:27 using GIT_ASKPASS to set credentials Git Personal Access Token
      17:42:27  > /usr/bin/git merge --ff 6d775a8a8fe4f2c2ed4b97d87eb608a524c2806f # timeout=10
      17:42:27  > /usr/bin/git config core.sparsecheckout # timeout=10
      17:42:27  > /usr/bin/git checkout -f 6d775a8a8fe4f2c2ed4b97d87eb608a524c2806f # timeout=10
      17:42:27 FATAL: Could not checkout 6d775a8a8fe4f2c2ed4b97d87eb608a524c2806f
      17:42:27 hudson.plugins.git.GitException: Command "/usr/bin/git checkout -f 6d775a8a8fe4f2c2ed4b97d87eb608a524c2806f" returned status code 128:
      17:42:27 stdout: 
      17:42:27 stderr: fatal: reference is not a tree: 6d775a8a8fe4f2c2ed4b97d87eb608a524c2806f
      17:42:27 
      17:42:27 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
      17:42:27 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$1100(CliGitAPIImpl.java:84)
      17:42:27 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2767)
      17:42:27 Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to Evergreen-29
      17:42:27 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      17:42:27 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      17:42:27 		at hudson.remoting.Channel.call(Channel.java:955)
      

      Any help would be really appreciated as this has been pending for long and nothing seems to be working.

            Assignee:
            Mark Waite
            Reporter:
            Prateek VERMA
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: