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

Null pointer exception polling from git job to bitbucket repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • git-plugin
    • None
    • Git plugin 2.4.4
      Git client plugin 1.19.6
      Jenkins 1.642.4
      Ubuntu 14.04 master with various slaves

      A stack trace was reported to /var/log/jenkins/jenkins.log that shows a null pointer exception in pollnig from either the git plugin or the git client plugin.

      Apr 10, 2016 4:27:00 AM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.matrix.MatrixProject@4616ca95[JENKINS-22119-bitbucket-credentialed-clone-fails]
      java.lang.NullPointerException
              at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:220)
              at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:194)
              at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:684)
              at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:571)
              at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381)
              at hudson.scm.SCM.poll(SCM.java:398)
              at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1475)
              at hudson.model.AbstractProject._poll(AbstractProject.java:1445)
              at hudson.model.AbstractProject.poll(AbstractProject.java:1356)
              at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119)
              at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:526)
              at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:555)
              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:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

      The conditions under which the null pointer exception occur are not yet clear to me. The job definition which caused that NPE has not changed in a month or more, yet this null pointer exception only appeared once and only very recently.

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: