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

java.lang.NoSuchMethodError: jenkins.scm.api.SCMSource.getTrustedRevision

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Jenkins 1.651.2, Pipeline 2.1, Pipeline API 2.0, Pipeline Multibranch 2.6 (also tried with 2.3 and 2.5)

      After branch indexing, when I try to build a project in a MultiBranch workflow, I receive the following error in the build log:

      Started by user xxxxxxxxxxxxxxxx
      Setting origin to git@xxxxxxxxxxxxxxxxxxxxx/project.git
      Fetching origin...
      java.lang.NoSuchMethodError: jenkins.scm.api.SCMSource.getTrustedRevision(Ljenkins/scm/api/SCMRevision;Lhudson/model/TaskListener;)Ljenkins/scm/api/SCMRevision;
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:78)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE
      

      A Pipeline project (not MultiBranch) seems to work OK, using a source definition in the build project, using git or checkout in a Jenkinsfile build script. So I think my git server doesn't have a problem. I've tried deleting and re-creating the multibranch pipeline project, to no effect.

      I can't seem to find my way around this. Any help would be greatly appreciated.

            recena Manuel Recena Soto
            swimfrog Ben Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: