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.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
setAuthorDate
(Date authorDate) void
setCommitter
(String committer) void
setCommitter
(Date committerDate) void
void
setMessage
(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:
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
-
setAuthorDate
-
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
-
setCommitter
-
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.
-