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.long
Deprecated, for removal: This API element is subject to removal in a future version.getHash()
Returns the SHA1 parents of this commit.void
void
setCommitter
(String committer) void
setCommitterDate
(Date committerDate) void
void
setMessage
(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:
getMessage
in interfaceBitbucketCommit
- Returns:
- commit message
-
setMessage
-
getHash
- Specified by:
getHash
in 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:
getDate
in 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:
getDateMillis
in interfaceBitbucketCommit
- Returns:
- commit time in milliseconds (Java timestamp)
-
getAuthor
Description copied from interface:BitbucketCommit
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketCommit
- Returns:
- the head commit author of this branch
-
setAuthor
-
getAuthorDate
Description copied from interface:BitbucketCommit
Returns the head commit author date for this branch.If not supported by the server returns the same value of committer date.
- Specified by:
getAuthorDate
in interfaceBitbucketCommit
- Returns:
- the author date in ISO format
-
getCommitter
Description copied from interface:BitbucketCommit
Returns the head committer for this branch.- Specified by:
getCommitter
in interfaceBitbucketCommit
- Returns:
- the head committer author of this branch
-
setCommitter
-
getCommitterDate
Description copied from interface:BitbucketCommit
Returns the head committer date for this branch.- Specified by:
getCommitterDate
in interfaceBitbucketCommit
- Returns:
- the author date in ISO format
-
setCommitterDate
-
getParents
Description copied from interface:BitbucketCommit
Returns the SHA1 parents of this commit.- Specified by:
getParents
in interfaceBitbucketCommit
- Returns:
- a list of parent SHA1 commit.
-