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

Branch indexing not working after dependencies updates

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
    • Environment:
      jenkins 2.45
      subversion 2.7.1
      scm api 2.0.3
    • Similar Issues:

      Description

      After installing an updated version of SCM Api plugin (version 2.0.3) branch indexing has stopped working with the following error:

      java.lang.NoSuchMethodError: jenkins.branch.MultiBranchProject.getRootDirFor(Lhudson/model/Job;)Ljava/io/File;
      at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getRootDirFor(TemplateDrivenMultiBranchProject.java:306)
      at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getRootDirFor(TemplateDrivenMultiBranchProject.java:89)
      at hudson.model.AbstractItem.getRootDir(AbstractItem.java:177)
      at hudson.model.Items.getConfigFile(Items.java:387)
      at hudson.model.AbstractItem.getConfigFile(AbstractItem.java:508)
      at hudson.model.AbstractItem.save(AbstractItem.java:503)
      at hudson.model.Job.save(Job.java:186)
      at hudson.model.AbstractProject.save(AbstractProject.java:306)
      at hudson.BulkChange.commit(BulkChange.java:98)
      at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenBranchProjectFactory.setBranch(TemplateDrivenBranchProjectFactory.java:104)
      at com.github.mjdetullio.jenkins.plugins.multibranch.FreeStyleBranchProjectFactory.newInstance(FreeStyleBranchProjectFactory.java:55)
      at com.github.mjdetullio.jenkins.plugins.multibranch.FreeStyleBranchProjectFactory.newInstance(FreeStyleBranchProjectFactory.java:38)
      at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1972)
      at jenkins.scm.impl.subversion.SubversionSCMSource.fetch(SubversionSCMSource.java:404)
      at jenkins.scm.impl.subversion.SubversionSCMSource.fetch(SubversionSCMSource.java:412)
      at jenkins.scm.impl.subversion.SubversionSCMSource.retrieve(SubversionSCMSource.java:240)
      at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:316)
      at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
      at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
      at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
      at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
      at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:965)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)

      An existing multibranch project is not loaded

        Attachments

          Activity

          Hide
          silverxxx Flavio Campana added a comment -

          An update to scm api plugin version 2.0.4 solved the problem, it seems it wasn't directly related to subversion plugin

          Show
          silverxxx Flavio Campana added a comment - An update to scm api plugin version 2.0.4 solved the problem, it seems it wasn't directly related to subversion plugin

            People

            • Assignee:
              Unassigned
              Reporter:
              silverxxx Flavio Campana
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: