java.lang.IllegalArgumentException: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e

Jenkins JIRA | gustavosegovia | 6 years ago
  1. 0

    My git + gerrit + husdson + gerrit trigger are apparently configured ok. When a new patch is push to gerrit, hudson is able to compile the patch. The problem happens when I push a commit that is a merge. Here is the log: Triggered by Gerrit: http://git.touchtec.com.br/gerrit/44 Checkout:workspace / /opt/hudson/jobs/gerrit-sandbox2/workspace - hudson.remoting.LocalChannel@122f55d Using strategy: Gerrit Hudson Trigger Last Built Revision: Revision bba35564d8b833615e8e1dfe30d6c09b4ab2b967 (null) Checkout:workspace / /opt/hudson/jobs/gerrit-sandbox2/workspace - hudson.remoting.LocalChannel@122f55d GitAPI created Fetching changes from the remote Git repository Fetching upstream changes from ssh://hudson@git.touchtec.com.br:29418/sandbox [workspace] $ git fetch -t ssh://hudson@git.touchtec.com.br:29418/sandbox refs/changes/44/44/1 From ssh://hudson@git.touchtec.com.br:29418/sandbox * branch refs/changes/44/44/1 -> FETCH_HEAD [workspace] $ git ls-tree HEAD [workspace] $ git rev-parse FETCH_HEAD Commencing build of Revision f731d588331f39933a5ea3739f315a1d30ae621a (null) GitAPI created Checking out Revision f731d588331f39933a5ea3739f315a1d30ae621a (null) [workspace] $ git checkout -f f731d588331f39933a5ea3739f315a1d30ae621a [workspace] $ git tag -a -f -m "Hudson Build #32" hudson-gerrit-sandbox2-32 [workspace] $ git rev-parse FETCH_HEAD [workspace] $ git log -1 --pretty=format:%P f731d588331f39933a5ea3739f315a1d30ae621a FATAL: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e java.lang.IllegalArgumentException: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e at org.spearce.jgit.lib.ObjectId.fromString(ObjectId.java:230) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:108) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:755) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:707) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:707) at hudson.model.AbstractProject.checkout(AbstractProject.java:1038) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1248) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129)

    Jenkins JIRA | 6 years ago | gustavosegovia
    java.lang.IllegalArgumentException: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e
  2. 0

    My git + gerrit + husdson + gerrit trigger are apparently configured ok. When a new patch is push to gerrit, hudson is able to compile the patch. The problem happens when I push a commit that is a merge. Here is the log: Triggered by Gerrit: http://git.touchtec.com.br/gerrit/44 Checkout:workspace / /opt/hudson/jobs/gerrit-sandbox2/workspace - hudson.remoting.LocalChannel@122f55d Using strategy: Gerrit Hudson Trigger Last Built Revision: Revision bba35564d8b833615e8e1dfe30d6c09b4ab2b967 (null) Checkout:workspace / /opt/hudson/jobs/gerrit-sandbox2/workspace - hudson.remoting.LocalChannel@122f55d GitAPI created Fetching changes from the remote Git repository Fetching upstream changes from ssh://hudson@git.touchtec.com.br:29418/sandbox [workspace] $ git fetch -t ssh://hudson@git.touchtec.com.br:29418/sandbox refs/changes/44/44/1 From ssh://hudson@git.touchtec.com.br:29418/sandbox * branch refs/changes/44/44/1 -> FETCH_HEAD [workspace] $ git ls-tree HEAD [workspace] $ git rev-parse FETCH_HEAD Commencing build of Revision f731d588331f39933a5ea3739f315a1d30ae621a (null) GitAPI created Checking out Revision f731d588331f39933a5ea3739f315a1d30ae621a (null) [workspace] $ git checkout -f f731d588331f39933a5ea3739f315a1d30ae621a [workspace] $ git tag -a -f -m "Hudson Build #32" hudson-gerrit-sandbox2-32 [workspace] $ git rev-parse FETCH_HEAD [workspace] $ git log -1 --pretty=format:%P f731d588331f39933a5ea3739f315a1d30ae621a FATAL: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e java.lang.IllegalArgumentException: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e at org.spearce.jgit.lib.ObjectId.fromString(ObjectId.java:230) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:108) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:755) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:707) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:707) at hudson.model.AbstractProject.checkout(AbstractProject.java:1038) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1248) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129)

    Jenkins JIRA | 6 years ago | gustavosegovia
    java.lang.IllegalArgumentException: Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e
  3. 0

    [JENKINS-9168] "git clone" should add --progress - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.lang.IllegalArgumentException: Invalid id: setup: git_dir: .git
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins Git Error Invalid ID

    Stack Overflow | 7 months ago | Nadine Sander
    java.lang.IllegalArgumentException: Invalid id:
  6. 0

    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?

    Jenkins JIRA | 7 months ago | Nadine Sander
    java.lang.IllegalArgumentException: Invalid id:

    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. java.lang.IllegalArgumentException

      Invalid id: bba35564d8b833615e8e1dfe30d6c09b4ab2b967 5f6c3a8772c77e384c2787a998934074c5ffba8e

      at org.spearce.jgit.lib.ObjectId.fromString()
    2. org.spearce.jgit
      ObjectId.fromString
      1. org.spearce.jgit.lib.ObjectId.fromString(ObjectId.java:230)
      1 frame
    3. com.sonyericsson.hudson
      GerritTriggerBuildChooser.prevBuildForChangelog
      1. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:108)
      2. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79)
      2 frames
    4. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:755)
      2. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:707)
      2 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:753)
      2. hudson.FilePath.act(FilePath.java:735)
      2 frames
    6. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:707)
      1 frame
    7. Hudson
      Run.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1038)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      4. hudson.model.Run.run(Run.java:1248)
      4 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:129)
      2 frames