Class BitbucketGitSCMRevision
java.lang.Object
jenkins.scm.api.SCMRevision
jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMRevision
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BitbucketTagSCMRevision
public class BitbucketGitSCMRevision
extends jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
Represents a specific revision of a bitbucket
SCMHead
.- Since:
- 2.2.14
- Author:
- Nikolas Falco
- See Also:
-
Constructor Summary
ConstructorDescriptionBitbucketGitSCMRevision
(jenkins.scm.api.SCMHead head, BitbucketCommit commit) Construct a Bitbucket revision. -
Method Summary
Methods inherited from class jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
getHash, toString
Methods inherited from class jenkins.scm.api.SCMRevision
getHead, isDeterministic
-
Constructor Details
-
BitbucketGitSCMRevision
public BitbucketGitSCMRevision(@NonNull jenkins.scm.api.SCMHead head, @NonNull BitbucketCommit commit) Construct a Bitbucket revision.- Parameters:
head
- theSCMHead
that represent this revisioncommit
- head
-
-
Method Details
-
getAuthor
Returns the author of this revision in GIT format.- Returns:
- commit author in the following format <name> <email>
-
getMessage
Returns the message associated with this revision.- Returns:
- revision message
-
getDate
Return the revision date in ISO format.- Returns:
- date for this revision
-
equals
- Overrides:
equals
in classjenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
-