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

Jenkins Git Error Invalid ID

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • git-plugin
    • Debian, Jenkins 2.5, Git Changelog 1.23, Git client plugin 1.19.6, Git Plugin 2.4.4

      Since a few days all my jenkins jobs ran into this error:

      {{Gestartet durch Benutzer anonymous
      Baue in Arbeitsbereich /var/lib/jenkins/jobs/test/workspace
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url https://gitlab....git # timeout=10
      Cleaning workspace
      > git rev-parse --verify HEAD # timeout=10
      Resetting working tree
      > git reset --hard # timeout=10
      > git clean -fdx # timeout=10
      Fetching upstream changes from https://gitlab....git
      > git --version # timeout=10
      using .gitcredentials to set credentials
      > git config --local credential.username tester # timeout=10
      > git config --local credential.helper store --file=/tmp/git152124522081411924.credentials # timeout=10
      > git -c core.askpass=true fetch --tags --progress https://gitlab.....git +refs/heads/:refs/remotes/origin/
      > git config --local --remove-section credential # timeout=10
      > git rev-parse refs/remotes/origin/master^

      {commit} # timeout=10
      > git rev-parse refs/remotes/origin/origin/master^{commit}

      # timeout=10
      Checking out Revision 8676ec6cfd93421af6213b50b1c48b07f537a070 (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 8676ec6cfd93421af6213b50b1c48b07f537a070
      > git rev-list 8676ec6cfd93421af6213b50b1c48b07f537a070 # timeout=10
      FATAL: Invalid id:
      java.lang.IllegalArgumentException: Invalid id:
      at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:232)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$10.execute(CliGitAPIImpl.java:2174)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revList(CliGitAPIImpl.java:2207)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.isCommitInRepo(CliGitAPIImpl.java:2217)
      at hudson.plugins.git.GitAPI.isCommitInRepo(GitAPI.java:237)
      at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1214)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1146)
      at hudson.scm.SCM.checkout(SCM.java:485)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE}}

      I changed nothing in the jenkins! I found out that the error depends on the new gitlab update with the security updates.. Now i updated all Git Plugins, but the error still exists. When the job checkout the gitlab project at first time, there is no error! but when the job checkout the second one, then the error occurs. I also add the "clean up before checkout" behavior, but it didn`t help.

      What can i do to remove the error?

            Unassigned Unassigned
            nsd Nadine Sander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: