Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70039

JGit crashes during pipeline script checkout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • git-plugin
    • None
    • Centos 7, Jenkins LTS natively installed (through yum package)

    Description

      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.

      Attachments

        1. image-2022-11-09-07-32-07-015.png
          image-2022-11-09-07-32-07-015.png
          9 kB
        2. image-2022-11-09-07-33-10-353.png
          image-2022-11-09-07-33-10-353.png
          85 kB
        3. image-2022-11-09-15-42-05-700.png
          image-2022-11-09-15-42-05-700.png
          13 kB
        4. image-2022-11-09-15-46-09-813.png
          image-2022-11-09-15-46-09-813.png
          18 kB
        5. pipeline-checkout-scm.txt
          0.4 kB
        6. pipeline-git.txt
          0.3 kB
        7. plugins.txt
          2 kB
        8. start-jenkins.sh
          0.9 kB

        Activity

          People

            markewaite Mark Waite
            carlosg_hms Carlos García
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: