Note:  I've resolved this issue, but am posting since others have also run into 
this, but I didn't find a documented solution.
I upgraded both Jenkins and a number of plugins last night.  Shortly afterwards 
(though curiously, not immediately), builds started failing with the following 
error.
BUILD SUCCESSFUL
Total time: 29 minutes 10 seconds
Archiving artifacts
Recording test results
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
FATAL: org.eclipse.jgit.lib.Repository
java.lang.InstantiationError: org.eclipse.jgit.lib.Repository
        at hudson.plugins.gerrit.git.GitTools.getRepository(GitTools.java:24)
        at hudson.plugins.gerrit.git.GitTools.getHead(GitTools.java:48)
        at 
hudson.plugins.gerrit.GerritNotifier$1.invoke(GerritNotifier.java:180)
        at 
hudson.plugins.gerrit.GerritNotifier$1.invoke(GerritNotifier.java:171)
        at hudson.FilePath.act(FilePath.java:788)
        at hudson.FilePath.act(FilePath.java:770)
        at hudson.plugins.gerrit.GerritNotifier.perform(GerritNotifier.java:171)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
        at 
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
        at 
hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
        at 
hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
        at hudson.model.Build$RunnerImpl.post2(Build.java:162)
        at 
hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
        at hudson.model.Run.run(Run.java:1434)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:238)

Googling for this yielded nothing much of use, though several people before me 
had experienced the same problem.  I eventually tracked down the issue and the 
solution was to remove the older Gerrit-Plugin (v0.7).  I was exclusively using 
the newer Gerrit-Trigger plugin, and having both installed caused this issue.

If you hit this, and aren't using Gerrit-Plugin, then just remove that through 
the Jenkins UI and the problem should go away.

Hope this helps someone!

Cheers,

--James

Reply via email to