Class BitbucketServerBranch
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerBranch
- All Implemented Interfaces:
BitbucketBranch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the head commit author for this branch.longReturns the head commit message for this branch.getName()longgetType()voidvoidsetCommitClosure(Callable<BitbucketCommit> commitClosure) voidsetDisplayId(String displayId) voidsetLatestCommit(String latestCommit) voidsetMessage(String message) voidvoidsetRawNode(String latestCommit) voidsetTimestamp(long timestamp) voidsetType(PullRequestBranchType type)
-
Constructor Details
-
BitbucketServerBranch
public BitbucketServerBranch() -
BitbucketServerBranch
-
-
Method Details
-
getRawNode
- Specified by:
getRawNodein interfaceBitbucketBranch- Returns:
- the head commit node of this branch
-
getName
- Specified by:
getNamein interfaceBitbucketBranch- Returns:
- the branch name
-
getTimestamp
public long getTimestamp() -
getDateMillis
public long getDateMillis()- Specified by:
getDateMillisin interfaceBitbucketBranch- Returns:
- the commit milliseconds from epoch
-
setDisplayId
-
setLatestCommit
-
setName
-
setRawNode
-
setTimestamp
public void setTimestamp(long timestamp) -
setCommitClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure) -
getMessage
Description copied from interface:BitbucketBranchReturns the head commit message for this branch.- Specified by:
getMessagein interfaceBitbucketBranch- Returns:
- the head commit message of this branch
-
setMessage
-
getAuthor
Description copied from interface:BitbucketBranchReturns the head commit author for this branch.- Specified by:
getAuthorin interfaceBitbucketBranch- Returns:
- the head commit author of this branch
-
setAuthor
-
getType
-
setType
-