java.lang.Object
io.jenkins.blueocean.blueocean_bitbucket_pipeline.model.BbBranch
io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.model.BbServerBranch

public class BbServerBranch extends BbBranch
Author:
Vivek Pandey
  • Constructor Details

    • BbServerBranch

      public BbServerBranch(@NonNull String latestCommit, @NonNull Boolean isDefault, @NonNull String id, @NonNull String displayId)
  • Method Details

    • getLatestCommit

      public String getLatestCommit()
      Specified by:
      getLatestCommit in class BbBranch
      Returns:
      latest commit id
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in class BbBranch
      Returns:
      True if it's default branch, false otherwise
    • getId

      public String getId()
    • getDisplayId

      public String getDisplayId()
      Specified by:
      getDisplayId in class BbBranch
      Returns:
      Branch display identifier