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

Git plugin 4.14.0 throws NullPointerException with ignore committer strategy plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • git-plugin
    • jenkins 2.361.3
      ignore committer strategy plugin 1.0.4
      git-plugin 4.14

      After updating all plugins for our Jenkins installation (2.361.3) and removing the "Pipeline: Deprecated Groovy Libraries" plugin, we noticed that the plugin started to throw a NPE once a multibranch pipeline received a webhook.

      The result is, that the pipeline job was still triggered ending up in several endless loops.

      From the jenkins logs

       

      Nov 26, 2022 9:11:52 PM SEVERE au.com.versent.jenkins.plugins.ignoreCommitterStrategy.IgnoreCommitterStrategy isAutomaticBuild
      Exception
      java.lang.NullPointerException
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl$HeadNameResult.calculate(GitSCMFileSystem.java:312)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:402)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:329)
      	at au.com.versent.jenkins.plugins.ignoreCommitterStrategy.IgnoreCommitterStrategy.isAutomaticBuild(IgnoreCommitterStrategy.java:100)
      	at jenkins.branch.BranchBuildStrategy.automaticBuild(BranchBuildStrategy.java:260)
      	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.isAutomaticBuild(MultiBranchProject.java:2251)
      	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.doAutomaticBuilds(MultiBranchProject.java:2202)
      	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observeExisting(MultiBranchProject.java:2028)
      	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1988)
      	at jenkins.scm.api.SCMHeadObserver$Wrapped.observe(SCMHeadObserver.java:637)
      	at jenkins.scm.api.SCMHeadEvent$Validated.observe(SCMHeadEvent.java:295)
      	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:357)
      	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:249)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1055)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:327)
      	at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.processHeadUpdate(MultiBranchProject.java:1587)
      	at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.onSCMHeadEvent(MultiBranchProject.java:1191)
      	at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:246)
      	at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:229)
      	at jenkins.scm.api.SCMEvent$Dispatcher.run(SCMEvent.java:546)
      	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:69)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829) 

      Could also be related to the git-plugin 4.14 update

       

            markewaite Mark Waite
            cmos Christian Moser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: