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

NullPointerException when scanning an organization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Jenkins 2.46.3, github-branch-source 2.0.6

      Scanning the jenkinsci organization to pick up this branch in the puppet-jenkins repository resulted in a NullPointerException for some reason.

      Not sure what other details I can add here :-/

      Proposing puppet-jenkins
      Looking up jenkinsci/puppet-jenkins
      
        Getting remote pull requests...
      
          Checking pull request #763
          (not from a trusted source)
          Job name: PR-763
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #761
          (not from a trusted source)
          Job name: PR-761
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #759
          (not from a trusted source)
          Job name: PR-759
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #752
          (not from a trusted source)
          Job name: PR-752
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #751
          (not from a trusted source)
          Job name: PR-751
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #743
          (not from a trusted source)
          Job name: PR-743
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #742
          (not from a trusted source)
          Job name: PR-742
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #734
          (not from a trusted source)
          Job name: PR-734
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #733
          (not from a trusted source)
          Job name: PR-733
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #725
          (not from a trusted source)
          Job name: PR-725
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #723
          (not from a trusted source)
          Job name: PR-723
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #669
          (not from a trusted source)
          Job name: PR-669
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #658
          Job name: PR-658
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #606
          (not from a trusted source)
          Job name: PR-606
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #598
          (not from a trusted source)
          Job name: PR-598
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #593
          (not from a trusted source)
          Job name: PR-593
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #592
          (not from a trusted source)
          Job name: PR-592
            ‘Jenkinsfile’ not found
          Does not meet criteria
      
          Checking pull request #555
      ERROR: Failed to create or update a subproject puppet-jenkins
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:623)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:462)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
      	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
      	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:98)
      	at hudson.model.Executor.run(Executor.java:405)
      Ignoring suppress-stack-trace-plugin
      

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: