Class BitbucketCloudBranch
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudBranch
- All Implemented Interfaces:
BitbucketBranch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static class -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketCloudBranch(String name, BitbucketCloudBranch.Target target, List<BitbucketCloudBranch.Head> heads) BitbucketCloudBranch(String name, String hash, long dateInMillis) -
Method Summary
Modifier and TypeMethodDescriptionReturns the head commit author for this branch.longReturns the head commit message for this branch.getName()booleanisActive()voidvoidsetCommitClosure(Callable<BitbucketCommit> commitClosure) voidsetDateMillis(long dateInMillis) voidsetMessage(String message) voidsetRawNode(String hash)
-
Constructor Details
-
BitbucketCloudBranch
public BitbucketCloudBranch(@NonNull String name, @Nullable BitbucketCloudBranch.Target target, @Nullable List<BitbucketCloudBranch.Head> heads) -
BitbucketCloudBranch
-
-
Method Details
-
getRawNode
- Specified by:
getRawNodein interfaceBitbucketBranch- Returns:
- the head commit node of this branch
-
setDateMillis
public void setDateMillis(long dateInMillis) -
setRawNode
-
getName
- Specified by:
getNamein interfaceBitbucketBranch- Returns:
- the branch name
-
getDateMillis
public long getDateMillis()- Specified by:
getDateMillisin interfaceBitbucketBranch- Returns:
- the commit milliseconds from epoch
-
isActive
public boolean isActive() -
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
-
setCommitClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure)
-