Class BitbucketServerCommit
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerCommit
- All Implemented Interfaces:
BitbucketCommit
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketServerCommit(String hash) BitbucketServerCommit(String message, String hash, long dateMillis, String author) BitbucketServerCommit(String message, String hash, BitbucketServerAuthor committer, long committerDateMillis, BitbucketServerAuthor author, long authorDateMillis, List<BitbucketServerCommit.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.voidvoidsetAuthorDate(Date authorDate) voidsetCommitter(String committer) voidsetCommitter(Date committerDate) voidvoidsetMessage(String message)
-
Constructor Details
-
BitbucketServerCommit
public BitbucketServerCommit(@NonNull String message, @NonNull String hash, @Nullable BitbucketServerAuthor committer, @NonNull long committerDateMillis, @Nullable BitbucketServerAuthor author, @NonNull long authorDateMillis, @Nullable List<BitbucketServerCommit.Parent> parents) -
BitbucketServerCommit
-
BitbucketServerCommit
-
-
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
-
setAuthorDate
-
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
-
setCommitter
-
getParents
Description copied from interface:BitbucketCommitReturns the SHA1 parents of this commit.- Specified by:
getParentsin interfaceBitbucketCommit- Returns:
- a list of parent SHA1 commit.
-