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.
|