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

Return SCMRevision null when revision.getHash() is null

      revision.getHash() is null when using v3.x.x of the server

      The following stacktrace happens in this case:

      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 
      

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: