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

Perforce SCM polling not working (NPE)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      Windows XP Pro SP3, Hudson 1.346, Perforce Plugin 1.0.19, Perforce Client 2009.2/232252, Perforce Server 2009.1/222893
    • Similar Issues:

      Description

      Since my latest Hudson upgrade, including upgrading the Perforce plugin, the SCM polling seems to have stopped working completely. If I check the Perforce Polling Log from the UI, I only see this:

      Started on 2010-feb-16 09:10:34
      Looking for changes...
      Using master perforce client: bkgnd-master1-elib-main
      

      At the Hudson console, the following is displayed:

      $ C:\dev\scm\p4\p4.exe workspace -o bkgnd-master1-elib-main
      

      ...

      2010-feb-16 09:10:34 hudson.triggers.SCMTrigger$Runner runPolling
      ALLVARLIG: Failed to record SCM polling
      java.lang.NullPointerException
      	at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:739)
      	at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:538)
      	at hudson.scm.SCM.poll(SCM.java:344)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1150)
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:319)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:346)
      	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)
      

      Any hints on how to troubleshoot?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jnilsson jnilsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: