-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Centos 7, Jenkins LTS natively installed (through yum package)
I recently updated our Jenkins instance from 2.361.2 LTS to 2.361.3 LTS, and after that, I observe the following error when trying to run a pipeline job:
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.internal.storage.file.FileSnapshot
at org.eclipse.jgit.storage.file.FileBasedConfig.<init>(FileBasedConfig.java:88)
at org.eclipse.jgit.util.SystemReader$Default.openJGitConfig(SystemReader.java:132)
at org.eclipse.jgit.util.SystemReader.getJGitConfig(SystemReader.java:338)
at org.eclipse.jgit.util.SystemReader.getSystemConfig(SystemReader.java:363)
at org.eclipse.jgit.util.SystemReader.getUserConfig(SystemReader.java:311)
at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:161)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:625)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRepository(CliGitAPIImpl.java:3476)
at hudson.plugins.git.GitAPI.getRepository(GitAPI.java:288)
at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:28)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:87)
at jenkins.plugins.git.GitHooksConfiguration.configure(GitHooksConfiguration.java:112)
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:338)
at jenkins.scm.api.SCMFileSystem$Builder.build(SCMFileSystem.java:584)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:219)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:191)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:118)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:312)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
Finished: FAILURE
After rolling back the update, back to 2.361.2, everything started to work again. I guess that might be something related to git-plugin, but I'm not absolutely certain about that, because the same plugin version works flawlessly in 2.361.2, and fails like described above in 2.361.3.
This failure completely blocks the path for Jenkins updates, since without Git we are just nothing
If you need more information about the system, other plugins installed, etc, I will be pleased to provide what you need, also I'm open for tests if someone needs it.