• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • checkmarx-plugin
    • None

      When configure the job to POLL SCM - some projects raise Nul pointer exception. You can run it manually and it is successfully complete
      Job starts at slave node.

      This is strange behavior, because some projects finished poll successfull, but some of them fails.

      Started on Oct 19, 2016 3:27:00 PM
      Using strategy: Default
      [poll] Last Built Revision: Revision f69ca73920f8bad5fd4ef802f67bb04fa136ea28 (refs/remotes/origin/master)
      ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@114adf85[CheckMarx_SecurityGate_gost-engine]
      java.lang.NullPointerException
      at java.util.TreeMap.putAll(TreeMap.java:313)
      at com.checkmarx.jenkins.EnvVarAction.buildEnvVars(EnvVarAction.java:33)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:934)
      at hudson.plugins.git.GitSCM.getParamExpandedRepos(GitSCM.java:404)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:609)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:574)
      at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:391)
      at hudson.scm.SCM.poll(SCM.java:408)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1460)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1363)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:528)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:574)
      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)

          [JENKINS-39117] NPE at git SCM polling

          Mark Waite added a comment -

          The stack trace seems to point to a problem in the checkmarx plugin and its EnvVarAction.

          Mark Waite added a comment - The stack trace seems to point to a problem in the checkmarx plugin and its EnvVarAction.

          yury Shabalin added a comment -

          markewaite Is it some workaround now?

          yury Shabalin added a comment - markewaite Is it some workaround now?

          Mark Waite added a comment - - edited

          rip you could try disabling the checkmarx plugin, or you could upgrade the checkmarx plugin to the latest version, or you could fork the checkmarx plugin repo, build your own version of the plugin and fix the null pointer exception in the EnvVarAction class in the checkmarx plugin. The line number for the stack trace message did not match the two EnvVarAction versions that I reviewed from history, so I am not entirely sure what version of that plugin you are running, nor how it should behave.

          Mark Waite added a comment - - edited rip you could try disabling the checkmarx plugin, or you could upgrade the checkmarx plugin to the latest version, or you could fork the checkmarx plugin repo, build your own version of the plugin and fix the null pointer exception in the EnvVarAction class in the checkmarx plugin. The line number for the stack trace message did not match the two EnvVarAction versions that I reviewed from history, so I am not entirely sure what version of that plugin you are running, nor how it should behave.

            Unassigned Unassigned
            rip yury Shabalin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: