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 bitbucketSCMHead
.- Since:
- 2.2.14
- Author:
- Nikolas Falco
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BitbucketGitSCMRevision(jenkins.scm.api.SCMHead head, BitbucketCommit commit)
Construct a Bitbucket revision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAuthor()
Returns the author of this revision in GIT format.Date
getDate()
Return the revision date in ISO format.String
getMessage()
Returns the message associated with this revision.int
hashCode()
-
-
-
Constructor Detail
-
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 Detail
-
getAuthor
public String getAuthor()
Returns the author of this revision in GIT format.- Returns:
- commit author in the following format >name< >email<
-
getMessage
public String getMessage()
Returns the message associated with this revision.- Returns:
- revision message
-
getDate
public Date getDate()
Return the revision date in ISO format.- Returns:
- date for this revision
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classjenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
-
-