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

    Constructors
    Constructor
    Description
    BitbucketGitSCMRevision(jenkins.scm.api.SCMHead head, BitbucketCommit commit)
    Construct a Bitbucket revision.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns the author of this revision in GIT format.
    Return the revision date in ISO format.
    Returns the message associated with this revision.
    int
     

    Methods inherited from class jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl

    getHash, toString

    Methods inherited from class jenkins.scm.api.SCMRevision

    getHead, isDeterministic

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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