Class BitbucketServerCommit
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerCommit
- All Implemented Interfaces:
BitbucketCommit
-
Constructor Summary
ConstructorDescriptionBitbucketServerCommit
(String hash) BitbucketServerCommit
(String message, String hash, long dateMillis, BitbucketServerAuthor author) BitbucketServerCommit
(String message, String hash, long dateMillis, String author) -
Method Summary
Modifier and TypeMethodDescriptionReturns the head commit author for this branch.getDate()
long
getHash()
void
void
void
setDateMillis
(long dateMillis) void
void
setMessage
(String message)
-
Constructor Details
-
BitbucketServerCommit
public BitbucketServerCommit(@NonNull String message, @NonNull String hash, @NonNull long dateMillis, @Nullable BitbucketServerAuthor author) -
BitbucketServerCommit
-
BitbucketServerCommit
-
-
Method Details
-
getMessage
- Specified by:
getMessage
in interfaceBitbucketCommit
- Returns:
- commit message
-
getDate
- Specified by:
getDate
in interfaceBitbucketCommit
- Returns:
- the commit date in ISO format
-
getHash
- Specified by:
getHash
in interfaceBitbucketCommit
- Returns:
- the commit hash (complete, not reduced)
-
getDateMillis
public long getDateMillis()- Specified by:
getDateMillis
in interfaceBitbucketCommit
- Returns:
- commit time in milliseconds (Java timestamp)
-
setMessage
-
setDate
-
setHash
-
setDateMillis
public void setDateMillis(long dateMillis) -
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
-