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

Scan Organization throws an NPE after a repo is removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • CloudBess Jenkins Team 2.73.1.2-rolling
      Folders Plugin 6.0.4

      I have a GitHub Organization folder that contains many repos.

      I removed one of the repos by modifying the "Repository name pattern" configuration.

      I clicked Scan Organization Now.

      An NPE was thrown (I removed 'jenkins-testfiles'):

      Ignoring jenkins-platform-sa-demo
      Ignoring jenkins-swarm-agent
      Ignoring jenkins-testfiles
      Ignoring maven-project
      Ignoring mavendemo
      Proposing multibranch-demo
      Looking up schottsfired/multibranch-demo
      
        Getting remote pull requests...
      
        0 pull requests were processed
      
        Getting remote branches...
      
          Checking branch awesome
            ‘Jenkinsfile’ found
          Met criteria
      
        0 branches were processed (query completed)
      
      Done examining schottsfired/multibranch-demo
      
      Ignoring myfirstplugin
      Ignoring og-aws
      Ignoring pi-scripts
      Ignoring pipeline-libraries
      Proposing sample-rest-server
      Looking up schottsfired/sample-rest-server
      
        Getting remote pull requests...
      
        0 pull requests were processed
      
        Getting remote branches...
      
          Checking branch development
            ‘Jenkinsfile’ found
          Met criteria
      
        0 branches were processed (query completed)
      
      Done examining schottsfired/sample-rest-server
      
      Ignoring schottsfired.github.io
      Ignoring support-kb-articles
      Ignoring support-shinobi-tools
      Ignoring todo-web
      Ignoring tomcat
      Ignoring training-assets
      Ignoring workflow-demos
      Ignoring workflow-plugin
      Ignoring workflow-plugin-pipeline-demo
      [Wed Sep 20 15:55:39 UTC 2017] Finished organization scan. Scan took 8.2 sec
      Evaluating orphaned items in David Schott
      Will remove jenkins-testfiles as it is #1 in the list
      FATAL: Failed to recompute children of David Schott
      java.lang.NullPointerException
      	at hudson.model.queue.Executables.getParentOf(Executables.java:48)
      	at com.cloudbees.hudson.plugins.folder.AbstractFolder.delete(AbstractFolder.java:1269)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:419)
      Finished: FAILURE

      cc oleg_nenashev

            Unassigned Unassigned
            shott85 David Schott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: