Class BitbucketCloudCommit
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudCommit
- All Implemented Interfaces:
BitbucketCommit
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketCloudCommit(String message, String date, String hash, BitbucketCloudAuthor author, BitbucketCloudAuthor committer, List<BitbucketCloudCommit.Parent> parents) -
Method Summary
Modifier and TypeMethodDescriptionReturns the head commit author for this branch.Returns the head commit author date for this branch.Returns the head committer for this branch.Returns the head committer date for this branch.getDate()Deprecated, for removal: This API element is subject to removal in a future version.longDeprecated, for removal: This API element is subject to removal in a future version.getHash()Returns the SHA1 parents of this commit.voidvoidsetCommitter(String committer) voidsetCommitterDate(Date committerDate) voidvoidsetMessage(String message)
-
Constructor Details
-
BitbucketCloudCommit
public BitbucketCloudCommit(@Nullable String message, @Nullable String date, @NonNull String hash, @Nullable BitbucketCloudAuthor author, @Nullable BitbucketCloudAuthor committer, @Nullable List<BitbucketCloudCommit.Parent> parents)
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceBitbucketCommit- Returns:
- commit message
-
setMessage
-
getHash
- Specified by:
getHashin interfaceBitbucketCommit- Returns:
- the commit hash (complete, not reduced)
-
setHash
-
getDate
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDatein interfaceBitbucketCommit- Returns:
- the commit date in ISO format
-
getDateMillis
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateMillisin interfaceBitbucketCommit- Returns:
- commit time in milliseconds (Java timestamp)
-
getAuthor
Description copied from interface:BitbucketCommitReturns the head commit author for this branch.- Specified by:
getAuthorin interfaceBitbucketCommit- Returns:
- the head commit author of this branch
-
setAuthor
-
getAuthorDate
Description copied from interface:BitbucketCommitReturns the head commit author date for this branch.If not supported by the server returns the same value of committer date.
- Specified by:
getAuthorDatein interfaceBitbucketCommit- Returns:
- the author date in ISO format
-
getCommitter
Description copied from interface:BitbucketCommitReturns the head committer for this branch.- Specified by:
getCommitterin interfaceBitbucketCommit- Returns:
- the head committer author of this branch
-
setCommitter
-
getCommitterDate
Description copied from interface:BitbucketCommitReturns the head committer date for this branch.- Specified by:
getCommitterDatein interfaceBitbucketCommit- Returns:
- the author date in ISO format
-
setCommitterDate
-
getParents
Description copied from interface:BitbucketCommitReturns the SHA1 parents of this commit.- Specified by:
getParentsin interfaceBitbucketCommit- Returns:
- a list of parent SHA1 commit.
-