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

Perforce Plugin Fails to Poll

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      [.jenkins] $ /usr/bin/p4 workspace -o workspace-name
      ERROR: Failed to record SCM polling
      java.lang.NullPointerException
      at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:895)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1326)
      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(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          Run the build manually once, and polling should work fine after that.

          Show
          rpetti Rob Petti added a comment - Run the build manually once, and polling should work fine after that.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Rob Petti
          Path:
          src/main/java/hudson/plugins/perforce/PerforceSCM.java
          http://jenkins-ci.org/commit/perforce-plugin/9ebaf4e3eca98e787b5061ee64d0e23250cdf952
          Log:
          [FIXED JENKINS-11878] fixing NPE during polling

          this particular NPE seems to be possible when the user switches an existing build to perforce, and attempts to use polling before executing the build at least once.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rob Petti Path: src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/perforce-plugin/9ebaf4e3eca98e787b5061ee64d0e23250cdf952 Log: [FIXED JENKINS-11878] fixing NPE during polling this particular NPE seems to be possible when the user switches an existing build to perforce, and attempts to use polling before executing the build at least once.
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_perforce #164
          [FIXED JENKINS-11878] fixing NPE during polling

          Rob Petti :
          Files :

          • src/main/java/hudson/plugins/perforce/PerforceSCM.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_perforce #164 [FIXED JENKINS-11878] fixing NPE during polling Rob Petti : Files : src/main/java/hudson/plugins/perforce/PerforceSCM.java

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              jbelton Jim Belton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: