Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
OS: Debian (squeeze, updated today)
jenkins: 1.500 (installed .deb from http://pkg.jenkins-ci.org/debian/ binary/ Packages)
git plugin: 1.1.26 (installed from jenkins web interface), did not work with 1.1.22 neither
git version 1.7.2.5 (from Debian)
Description
I have set-up a build with the git plugin - it uses polling, but it always fails with the following error seen in "Git Polling Log":
Git Polling Log
Started on Feb 10, 2013 12:06:00 PM
Using strategy: Default
[poll] Last Build : #2
Fetching changes from the remote Git repositories
Fetching upstream changes from git://devel.brailcom.org/git/lcg.git
Polling for changes in
Seen branch in repository origin/HEAD
Seen branch in repository origin/eurochance
Seen branch in repository origin/master
Seen branch in repository origin/parse-inline-markup
ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@6099210f[LCG]
java.lang.RuntimeException: No author in changeset null
at hudson.plugins.git.GitChangeSet.getAuthorName(GitChangeSet.java:324)
at hudson.plugins.git.GitSCM.isRevExcluded(GitSCM.java:1788)
at hudson.plugins.git.GitSCM.access$300(GitSCM.java:72)
at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:755)
at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:731)
at hudson.FilePath.act(FilePath.java:865)
at hudson.FilePath.act(FilePath.java:838)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:731)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:644)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
at hudson.model.AbstractProject._poll(AbstractProject.java:1480)
at hudson.model.AbstractProject.poll(AbstractProject.java:1410)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Attachments
Issue Links
- is duplicated by
-
JENKINS-25132 Remote access API - listing culprits using the 'tree' query parameter throws exception
-
- Resolved
-
Hi,
I'm getting a quite similar error :
08/01/2014 10:00:27 Archiving artifacts
08/01/2014 10:00:27 FATAL: No author in changeset 506fc54deb5c89c43450dc60a054159999198b0atree
08/01/2014 10:00:27 java.lang.RuntimeException: No author in changeset 506fc54deb5c89c43450dc60a054159999198b0atree
08/01/2014 10:00:27 at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:336)
08/01/2014 10:00:27 at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:414)
08/01/2014 10:00:27 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:710)
08/01/2014 10:00:27 at hudson.model.Run.execute(Run.java:1702)
08/01/2014 10:00:27 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
08/01/2014 10:00:27 at hudson.model.ResourceController.execute(ResourceController.java:88)
08/01/2014 10:00:27 at hudson.model.Executor.run(Executor.java:231)
I have checked the git-plugin code and I think the id of the commit is not well retrieved.
506fc54deb5c89c43450dc60a054159999198b0a is a valid SHA1 but the id retrieved is 506fc54deb5c89c43450dc60a054159999198b0atree , so the tree suffix is too much.
The issue might be in the parseCommit method or maybe it can be linked to a specific git version (like the issue of maven release plugin with git 1.8.5).
I'm using :
git 1.7.9.5.
Jenkins GIT client plugin 1.6.0
Jenkins GIT plugin 2.0
I'm not sure about the scenario to reproduce this error but there is the git log of the commit :
commit 506fc54deb5c89c43450dc60a054159999198b0a
Author: JENKINS <jenkins@xxx.com>
Date: Wed Jan 8 01:13:06 2014 +0100
release Langs
Change-Id: I157faff2efffdb369933958dfb15842f0e9c4ff7
commit f25811f05aeb812bdf4a1c2c50d251f0e088f9f5
Author: JENKINS <jenkins@xxx.com>
Date: Fri Jan 3 01:12:26 2014 +0100
release Langs
Change-Id: I82be648aaa25dcbc81c2ace3ac2dea91eba6d425
commit 3be79c86892135e7f0d4a40642cd2710cd7013c2
Author: JENKINS <jenkins@xxx.com>
Date: Fri Dec 27 01:13:28 2013 +0100
release Langs
Change-Id: I42fbc4d166161d467602f7b3c6ef6621c9512545
I don't have a Jenkins Plug-in dev ready environment so I can't go further right now.
I hope the details I gave could help.