Launcher is NULL in SCM.pollChanges() method. Regression

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It seems that the Launcher argument in SCM.pollChanges() is null, which makes it
      impossible to poll as the TFS server polls through command line.

      I have a test project that is setup with TFS, and to be built on a node; and it
      will throw the below exception in the console when it is trying to poll.

      I have tested 1.321, 1.322-SNAPSHOT (28 aug 9:00 GMT) and both of them has this
      problem. If I revert to Hudson 1.317, then the issue does not occur UNLESS the
      node isnt started.

      But for 1.318+, even if the node is started and had successful builds on it, I
      still get launcher=null in the poll method.

      -----------------------------------------------------------
      INFO: Starting poll project=hudson.model.FreeStyleProject@183eae7[Polling 321],
      launcher=null, workspace=null, listener=
      hudson.util.StreamTaskListener@1a7a05
      2009-aug-28 10:21:11 hudson.triggers.SCMTrigger$Runner runPolling
      ALLVARLIG: Failed to record SCM polling
      java.lang.NullPointerException
      at hudson.plugins.tfs.TfTool.execute(TfTool.java:99)
      at hudson.plugins.tfs.model.Server.execute(Server.java:47)
      at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41)
      at
      hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.j
      ava:188)
      at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:975)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339)
      at
      hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.jav
      a:114)
      at
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8
      85)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      -----------------------------------------------------------

            Assignee:
            Unassigned
            Reporter:
            redsolo
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: