java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.server.client.branch.BitbucketServerBranch
All Implemented Interfaces:
BitbucketBranch

public class BitbucketServerBranch extends Object implements BitbucketBranch
  • Constructor Details

    • BitbucketServerBranch

      public BitbucketServerBranch()
    • BitbucketServerBranch

      public BitbucketServerBranch(String name, String headHash)
  • Method Details

    • getRawNode

      public String getRawNode()
      Specified by:
      getRawNode in interface BitbucketBranch
      Returns:
      the head commit node of this branch
    • getName

      public String getName()
      Specified by:
      getName in interface BitbucketBranch
      Returns:
      the branch name
    • getTimestamp

      public long getTimestamp()
    • getDateMillis

      public long getDateMillis()
      Specified by:
      getDateMillis in interface BitbucketBranch
      Returns:
      the commit milliseconds from epoch
    • setDisplayId

      public void setDisplayId(String displayId)
    • setLatestCommit

      public void setLatestCommit(String latestCommit)
    • setName

      public void setName(String displayId)
    • setRawNode

      public void setRawNode(String latestCommit)
    • setTimestamp

      public void setTimestamp(long timestamp)
    • setCommitClosure

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure)
    • getMessage

      public String getMessage()
      Description copied from interface: BitbucketBranch
      Returns the head commit message for this branch.
      Specified by:
      getMessage in interface BitbucketBranch
      Returns:
      the head commit message of this branch
    • setMessage

      public void setMessage(String message)
    • getAuthor

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

      public void setAuthor(String author)