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

NullPointerException in EnvInjectBuilderContributionAction.buildEnvVars during SCM poll

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      EnvInject 1.60, Jenkins 1.473
    • Similar Issues:

      Description

      For quite some time, all of our jobs have been randomly going into a state where SCM polling starts failing with the following stack:

      Started on Jul 10, 2012 9:39:45 AM
      ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@7e1eb84f[anonymous_libs]
      java.lang.NullPointerException
      	at java.util.TreeMap.putAll(Unknown Source)
      	at org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction.buildEnvVars(EnvInjectBuilderContributionAction.java:23)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:867)
      	at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1114)
      	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      	at hudson.scm.SCM.poll(SCM.java:373)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1377)
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

      When a job goes into this state, it never gets out of it unless a user kicks off a build manually. When that happens, SCM polling for that job start working again for a short time.

      I'm attaching an anoymized config file for this particular job.

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              gabrielegiuseppini Gabriele Giuseppini
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: