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

SCM Polling Failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core, job-dsl-plugin
    • None

      I have a multi branch pipeline job which is defined via Job DSL. ( See attachment)

      This job is run against Bitbucket Cloud, and has worked previously. I have recently upgraded to Jenkins 2.451 on JDK 21. Previously I was using Jenkins 2.440 on JDK 11. 

      This error may be after the upgrade, however I am not certain.

      This is the error I see:  in https://jenkins/job/job-name/scmPollLog/:

       Started on Apr 4, 2024, 1:34:00 PM
      ERROR: Failed to record SCM polling for org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@43b1fb01[Vmol-Branch]
      java.lang.NullPointerException: Cannot invoke "jenkins.triggers.SCMTriggerItem.poll(hudson.model.TaskListener)" because the return value of "hudson.triggers.SCMTrigger.job()" is null
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:617)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:664)
      	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:123)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.base/java.lang.Thread.run(Unknown Source)

            Unassigned Unassigned
            chandana_desilva_id_au Chandana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: