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

Null pointer exception "h.triggers.SCMTrigger$Runner#runPolling: Failed to record SCM polling..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None
    • 4.8.1 released July 25, 2021

      After the 4.8.0 upgrade, any jobs that have "Poll SCM" as the only build trigger are dumping.  Jenkins LTS 2.277.4.  Confirmed this behaviour on 3 different Jenkins servers.  RHEL7.9 is the OS for the servers.

      2021-07-22 09:42:01.162+0000 [id=4766] SEVERE h.triggers.SCMTrigger$Runner#runPolling: Failed to record SCM polling for hudson.matrix.MatrixProject@641cb4d8[job_name]
      java.lang.NullPointerException
      at hudson.plugins.git.util.BuildData.getLastBuild(BuildData.java:168)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:768)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:685)
      at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:401)
      at hudson.scm.SCM.poll(SCM.java:418)
      at org.jenkinsci.plugins.multiplescms.MultiSCM.compareRemoteRevisionWith(MultiSCM.java:114)
      at hudson.scm.SCM.poll(SCM.java:418)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1383)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1289)
      at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:143)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:606)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:652)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

            markewaite Mark Waite
            nm_v Victoria
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: