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

NPE in hudson.plugins.templateproject.ProxySCM.requiresWorkspaceForPolling(ProxySCM.java:124)

    Details

    • Similar Issues:

      Description

      I have a template project setup, where project 1 (SCMTemplate) only defines Git SCM data (branch, URL, ...) and then project 2 (myproject) refers to that SCM data via "Use SCM from another project".

      My problem is that now I dont seem to get any changelog anymore. Changes only states: No changes.

      When checking the logs I find the following exception:

      java.lang.NullPointerException
      	at hudson.plugins.templateproject.ProxySCM.requiresWorkspaceForPolling(ProxySCM.java:124)
      	at hudson.model.AbstractProject._poll(AbstractProject.java:1365)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1335)
      	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)
      
      

      Looking at the sources, the only chance this could happen is that either getProject() or getSCM() is null.

        Attachments

          Activity

          Hide
          rburgst2 Rainer Burgstaller added a comment -

          In fact, this issue is caused by JENKINS-15861.

          Show
          rburgst2 Rainer Burgstaller added a comment - In fact, this issue is caused by JENKINS-15861 .
          Hide
          rburgst2 Rainer Burgstaller added a comment -

          caused by JENKINS-15861

          Show
          rburgst2 Rainer Burgstaller added a comment - caused by JENKINS-15861

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              rburgst2 Rainer Burgstaller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: