Class BitbucketCloudCommit

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudCommit
All Implemented Interfaces:
BitbucketCommit

public class BitbucketCloudCommit extends Object implements BitbucketCommit
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface BitbucketCommit
      Returns:
      commit message
    • setMessage

      public void setMessage(String message)
    • getHash

      public String getHash()
      Specified by:
      getHash in interface BitbucketCommit
      Returns:
      the commit hash (complete, not reduced)
    • setHash

      public void setHash(String hash)
    • getDate

      @Deprecated(since="936.1.0", forRemoval=true) public String getDate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getDate in interface BitbucketCommit
      Returns:
      the commit date in ISO format
    • getDateMillis

      @Deprecated(since="936.1.0", forRemoval=true) public long getDateMillis()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getDateMillis in interface BitbucketCommit
      Returns:
      commit time in milliseconds (Java timestamp)
    • getAuthor

      public String getAuthor()
      Description copied from interface: BitbucketCommit
      Returns the head commit author for this branch.
      Specified by:
      getAuthor in interface BitbucketCommit
      Returns:
      the head commit author of this branch
    • setAuthor

      public void setAuthor(String author)
    • getAuthorDate

      public Date getAuthorDate()
      Description copied from interface: BitbucketCommit
      Returns the head commit author date for this branch.

      If not supported by the server returns the same value of committer date.

      Specified by:
      getAuthorDate in interface BitbucketCommit
      Returns:
      the author date in ISO format
    • getCommitter

      public String getCommitter()
      Description copied from interface: BitbucketCommit
      Returns the head committer for this branch.
      Specified by:
      getCommitter in interface BitbucketCommit
      Returns:
      the head committer author of this branch
    • setCommitter

      public void setCommitter(String committer)
    • getCommitterDate

      public Date getCommitterDate()
      Description copied from interface: BitbucketCommit
      Returns the head committer date for this branch.
      Specified by:
      getCommitterDate in interface BitbucketCommit
      Returns:
      the author date in ISO format
    • setCommitterDate

      public void setCommitterDate(Date committerDate)
    • getParents

      public Collection<String> getParents()
      Description copied from interface: BitbucketCommit
      Returns the SHA1 parents of this commit.
      Specified by:
      getParents in interface BitbucketCommit
      Returns:
      a list of parent SHA1 commit.