java.lang.AbstractMethodError: jenkins.plugins.git.AbstractGitSCMSource.getExtensions()Ljava/util/List;

Jenkins JIRA | Vlad Dumitrescu | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Once I updated to 2.5.1, I couldn't index the branches anymore in my pipeline projects which use github as their source control rather than git. Going back to 2.5.0 makes it work again. It also works if I use the "git" section instead of the "github" section for source control. The exception in the log is {noformat} Executor threw an exception java.lang.AbstractMethodError: jenkins.plugins.git.AbstractGitSCMSource.getExtensions()Ljava/util/List; at jenkins.plugins.git.AbstractGitSCMSource.build(AbstractGitSCMSource.java:305) at jenkins.scm.api.SCMSource.build(SCMSource.java:283) at jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:267) at jenkins.branch.MultiBranchProject.access$000(MultiBranchProject.java:82) at jenkins.branch.MultiBranchProject$1.observe(MultiBranchProject.java:297) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:285) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:256) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {noformat}

    Jenkins JIRA | 10 months ago | Vlad Dumitrescu
    java.lang.AbstractMethodError: jenkins.plugins.git.AbstractGitSCMSource.getExtensions()Ljava/util/List;

    Root Cause Analysis

    1. java.lang.AbstractMethodError

      jenkins.plugins.git.AbstractGitSCMSource.getExtensions()Ljava/util/List;

      at jenkins.plugins.git.AbstractGitSCMSource.build()
    2. jenkins.plugins.git
      AbstractGitSCMSource.build
      1. jenkins.plugins.git.AbstractGitSCMSource.build(AbstractGitSCMSource.java:305)
      1 frame
    3. jenkins.scm.api
      SCMSource.build
      1. jenkins.scm.api.SCMSource.build(SCMSource.java:283)
      1 frame
    4. jenkins.branch
      MultiBranchProject$1.observe
      1. jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:267)
      2. jenkins.branch.MultiBranchProject.access$000(MultiBranchProject.java:82)
      3. jenkins.branch.MultiBranchProject$1.observe(MultiBranchProject.java:297)
      3 frames
    5. org.jenkinsci.plugins
      GitHubSCMSource.retrieve
      1. org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:285)
      2. org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:256)
      2 frames
    6. jenkins.scm.api
      SCMSource.fetch
      1. jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
      1 frame
    7. jenkins.branch
      MultiBranchProject.computeChildren
      1. jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
      1 frame
    8. com.cloudbees.hudson
      FolderComputation.run
      1. com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
      2. com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
      2 frames
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames