Class 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:
    Serialized Form
    • Constructor Detail

      • BitbucketGitSCMRevision

        public BitbucketGitSCMRevision​(@NonNull
                                       jenkins.scm.api.SCMHead head,
                                       @NonNull
                                       BitbucketCommit commit)
        Construct a Bitbucket revision.
        Parameters:
        head - the SCMHead that represent this revision
        commit - 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 class jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl