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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BranchSCMHead(String branchName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPronoun()
BitbucketRepositoryType
getRepositoryType()
Gets the repository type.
-
-
-
Constructor Detail
-
BranchSCMHead
public BranchSCMHead(String branchName)
Constructor.- Parameters:
branchName
- the branch name
-
-
Method Detail
-
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 classjenkins.scm.api.SCMHead
-
-