[JIRA] [git-changelog-plugin] (JENKINS-34886) Jenkins Git Error Invalid ID

97 views
Skip to first unread message

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 17, 2016, 11:04:02 AM5/17/16
to jenkinsc...@googlegroups.com
Nadine Sander created an issue
 
Jenkins / Bug JENKINS-34886
Jenkins Git Error Invalid ID
Issue Type: Bug Bug
Assignee: Paul Wellner Bou
Attachments: Bildschirmfoto 2016-05-13 um 17.41.07.png
Components: git-changelog-plugin, git-client-plugin, git-plugin
Created: 2016/May/17 3:03 PM
Environment: Debian, Jenkins 2.5, Git Changelog 1.23, Git client plugin 1.19.6, Git Plugin 2.4.4
Labels: Git Jenkins
Priority: Blocker Blocker
Reporter: Nadine Sander

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?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

paul@wellnerbou.de (JIRA)

unread,
May 17, 2016, 11:38:02 AM5/17/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou edited a comment on Bug JENKINS-34886
 
Re: Jenkins Git Error Invalid ID
Assigning to Tomas,  is  this  seems to be his  your  code . ?

paul@wellnerbou.de (JIRA)

unread,
May 17, 2016, 11:38:02 AM5/17/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou assigned an issue to Tomas Bjerre
 

Assigning to Tomas, this seems to be his code.

Change By: Paul Wellner Bou
Assignee: Paul Wellner Bou Tomas Bjerre

tomas.bjerre85@gmail.com (JIRA)

unread,
May 17, 2016, 11:46:04 AM5/17/16
to jenkinsc...@googlegroups.com
Tomas Bjerre commented on Bug JENKINS-34886
 
Re: Jenkins Git Error Invalid ID

No I'd say its Git Client Plugin.

paul@wellnerbou.de (JIRA)

unread,
May 17, 2016, 12:17:03 PM5/17/16
to jenkinsc...@googlegroups.com

Nadine Sander: Are you able to reproduce this with an open repository, where we have access to, to reproduce this bug?

paul@wellnerbou.de (JIRA)

unread,
May 17, 2016, 12:19:02 PM5/17/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou edited a comment on Bug JENKINS-34886
[~nsd]: Are you able to reproduce this with an open repository, where we have access to, to reproduce this bug?
Could you check if this error happens without using git-changelog-plugin at all?

mark.earl.waite@gmail.com (JIRA)

unread,
May 18, 2016, 12:44:01 AM5/18/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Since Nadine Sander says:

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

I think this is not related to Jenkins or the plugins at all. Nothing changed in Jenkins, something changed in gitlab, and the error happened.

Change By: Mark Waite
Status: Open Resolved
Resolution: Not A Defect

paul@wellnerbou.de (JIRA)

unread,
May 18, 2016, 3:57:02 AM5/18/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou commented on Bug JENKINS-34886
 
Re: Jenkins Git Error Invalid ID

Mark Waite, Nadine Sander: I personally don't really care where the bug is, I would like my plugins work with gitlab as well, so if I can make them work, I will. So I really would like to reproduce this.

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 18, 2016, 4:50:04 AM5/18/16
to jenkinsc...@googlegroups.com

I disabled the git changelog plugin and sadly didn’t resolve anything. I’m going to check all the other plugins now. After that i’ll find an open repository for you, but this could become a little difficult for me, because its a repository used by a company.

paul@wellnerbou.de (JIRA)

unread,
May 18, 2016, 6:02:01 AM5/18/16
to jenkinsc...@googlegroups.com

Nadine Sander: Ok, thank you, than I won't be able to fix anything.
Why would this be difficult? There are hundreds of open repositories on gitlab.com.

paul@wellnerbou.de (JIRA)

unread,
May 18, 2016, 6:03:01 AM5/18/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou edited a comment on Bug JENKINS-34886
[~nsd]: Ok, thank you, than I won't be able to fix anything , I'll remove the git-changelog component .

Why would this be difficult? There are hundreds of open repositories on gitlab.com.

paul@wellnerbou.de (JIRA)

unread,
May 18, 2016, 6:03:02 AM5/18/16
to jenkinsc...@googlegroups.com
Paul Wellner Bou updated an issue
 
Change By: Paul Wellner Bou
Component/s: git-changelog-plugin

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 18, 2016, 7:55:01 AM5/18/16
to jenkinsc...@googlegroups.com
Nadine Sander reopened an issue
 

I created a public git repo in gitlab: g...@gitlab.rsm-support.de:nadine.sander/testproject-jenkins.git
At the first job building there occurs a error because of the missing build.xml, but on the second building the "invalid id" error occurs. So you can check this. Thanks!

Change By: Nadine Sander
Resolution: Not A Defect
Status: Resolved Reopened

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 18, 2016, 7:55:02 AM5/18/16
to jenkinsc...@googlegroups.com
Nadine Sander assigned an issue to Paul Wellner Bou
Change By: Nadine Sander
Assignee: Tomas Bjerre Paul Wellner Bou

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 18, 2016, 8:06:02 AM5/18/16
to jenkinsc...@googlegroups.com
Nadine Sander updated an issue
Change By: Nadine Sander
Labels: Git Jenkins  git-client

mark.earl.waite@gmail.com (JIRA)

unread,
May 18, 2016, 10:33:03 AM5/18/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-34886
 
Re: Jenkins Git Error Invalid ID

We'll need a private key to connect to that repository. When I try to connect to it, it reports "Could not read from remote repository". You can e-mail a private key to mark.earl.waite at gmail.com if you're willing to share access to that repository long enough to investigate the problem

nadine.sander@ressourcenmangel.de (JIRA)

unread,
May 19, 2016, 4:10:01 AM5/19/16
to jenkinsc...@googlegroups.com

I sent you the token by email.

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 28, 2019, 8:20:02 PM8/28/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Reopened Open
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages