Class BitbucketCloudBranch
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudBranch
- All Implemented Interfaces:
BitbucketBranch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.static class
-
Constructor Summary
ConstructorDescriptionBitbucketCloudBranch
(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.long
Returns the head commit message for this branch.getName()
boolean
isActive()
void
void
setCommitClosure
(Callable<BitbucketCommit> commitClosure) void
setDateMillis
(long dateInMillis) void
setMessage
(String message) void
setRawNode
(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:
getRawNode
in interfaceBitbucketBranch
- Returns:
- the head commit node of this branch
-
setDateMillis
public void setDateMillis(long dateInMillis) -
setRawNode
-
getName
- Specified by:
getName
in interfaceBitbucketBranch
- Returns:
- the branch name
-
getDateMillis
public long getDateMillis()- Specified by:
getDateMillis
in interfaceBitbucketBranch
- Returns:
- the commit milliseconds from epoch
-
isActive
public boolean isActive() -
getMessage
Description copied from interface:BitbucketBranch
Returns the head commit message for this branch.- Specified by:
getMessage
in interfaceBitbucketBranch
- Returns:
- the head commit message of this branch
-
setMessage
-
getAuthor
Description copied from interface:BitbucketBranch
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketBranch
- Returns:
- the head commit author of this branch
-
setAuthor
-
setCommitClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure)
-