java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.util.SCMUtils

public final class SCMUtils extends Object
Utility class that helps to extract specific information from implementation of SCM base classes.
Since:
936.1.0
Author:
Nikolas Falco
  • Method Details

    • getHash

      @CheckForNull public static String getHash(@Nullable jenkins.scm.api.SCMRevision revision)
      Returns the SHA1 hash for the given SCMRevision implementation.

      In case of ChangeRequestSCMRevision returns the SHA1 hash of the target.

      Parameters:
      revision - extract from
      Returns:
      a SHA1 commit hash in the revision if present