Class BranchSCMHead

java.lang.Object
jenkins.scm.api.SCMHead
com.cloudbees.jenkins.plugins.bitbucket.BranchSCMHead
All Implemented Interfaces:
Serializable, Comparable<jenkins.scm.api.SCMHead>, jenkins.scm.api.mixin.SCMHeadMixin

public class BranchSCMHead extends jenkins.scm.api.SCMHead
SCMHead for a Bitbucket branch.
Since:
2.0.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jenkins.scm.api.SCMHead

    jenkins.scm.api.SCMHead.HeadByItem

    Nested classes/interfaces inherited from interface jenkins.scm.api.mixin.SCMHeadMixin

    jenkins.scm.api.mixin.SCMHeadMixin.Equality
  • Field Summary

    Fields inherited from class jenkins.scm.api.SCMHead

    PRONOUN
  • Constructor Summary

    Constructors
    Constructor
    Description
    BranchSCMHead(String branchName)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the repository type.

    Methods inherited from class jenkins.scm.api.SCMHead

    compareTo, equals, getAction, getAllActions, getName, getOrigin, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BranchSCMHead

      public BranchSCMHead(String branchName)
      Constructor.
      Parameters:
      branchName - the branch name
  • Method Details

    • getRepositoryType

      @CheckForNull public BitbucketRepositoryType getRepositoryType()
      Gets the repository type.
      Returns:
      the repository type or null if this is a legacy branch instance.
    • getPronoun

      public String getPronoun()
      Overrides:
      getPronoun in class jenkins.scm.api.SCMHead