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

NPE in Folder Plug-in 6.0.1

XMLWordPrintable

      This happened after an update of Jenkins to 2.32.3 and the plug-in to 6.0.1. As a result, branch indexing is currently broken and not working at all for us.

      Rolling back Jenkins to 2.19.4 did not help.

      Rolling back the plug-in to 5.18 made (all?) relevant multi-branch pipeline jobs disappear in our Jenkins instance. Thus, we cannot rollback to 5.x.

       

      Started by user ...
      [Wed Mar 08 11:05:05 PST 2017] Starting branch indexing...
      > git rev-parse --is-inside-work-tree # timeout=10
      Setting origin to ...
      > git config remote.origin.url ... # timeout=10
      Fetching & pruning origin...
      Fetching upstream changes from origin
      > git --version # timeout=10
      using GIT_SSH to set credentials ...
      > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune
      Getting remote branches...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen branch in repository origin/...
      Seen 10 remote branches
      Checking branch ...
      ‘Jenkinsfile’ found
      Met criteria
      ERROR: [Wed Mar 08 11:05:08 PST 2017] Could not fetch branches from source ...
      java.lang.NullPointerException
        at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder$FullReindexChildObserver.shouldUpdate(ComputedFolder.java:728)
        at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1890)
        at jenkins.plugins.git.AbstractGitSCMSource$2.run(AbstractGitSCMSource.java:318)
        at jenkins.plugins.git.AbstractGitSCMSource$2.run(AbstractGitSCMSource.java:242)
        at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:212)
        at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:242)
        at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
        at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
        at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:252)
        at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
        at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:404)
      [Wed Mar 08 11:05:08 PST 2017] Finished branch indexing. Indexing took 2 sec
      FATAL: Failed to recompute children of ...
      java.lang.NullPointerException
        at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder$FullReindexChildObserver.shouldUpdate(ComputedFolder.java:728)
        at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1890)
        at jenkins.plugins.git.AbstractGitSCMSource$2.run(AbstractGitSCMSource.java:318)
        at jenkins.plugins.git.AbstractGitSCMSource$2.run(AbstractGitSCMSource.java:242)
        at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:212)
        at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:242)
        at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
        at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
        at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:252)
        at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
        at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE
      

       

            jglick Jesse Glick
            guw Gunnar Wagenknecht
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: