-
New Feature
-
Resolution: Not A Defect
-
Minor
-
None
When trying to use the plugin against v3.x.x the head of the revision fails because revision.getHash() is null.
``` Started by user xxxxx (xxxx) java.lang.NullPointerException at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:231) at jenkins.plugins.git.AbstractGitSCMSource$SpecificRevisionBuildChooser.<init>(AbstractGitSCMSource.java:388) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.build(BitbucketSCMSource.java:411) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:80) 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 ```
Apparently, the plugin has been only tested against v4.x.x so the API might be different on previous versions.