java.lang.Object
io.jenkins.blueocean.blueocean_bitbucket_pipeline.model.BbRepo
Direct Known Subclasses:
BbCloudRepo, BbServerRepo

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract class BbRepo extends Object
Bitbucket repository.
Author:
Vivek Pandey
  • Constructor Details

    • BbRepo

      public BbRepo()
  • Method Details

    • getSlug

      public abstract String getSlug()
      Returns:
      Repo slug
    • getName

      public abstract String getName()
      Returns:
      Repo name
    • getOrg

      public abstract BbOrg getOrg()
      Returns:
      Bitbucket project/team this repo belongs to
    • isGit

      @Deprecated public abstract boolean isGit()
      Deprecated.
      Now always true.
    • isPrivate

      public abstract boolean isPrivate()
      Returns:
      true if its private repo
    • toScmRepository

      public io.jenkins.blueocean.rest.impl.pipeline.scm.ScmRepository toScmRepository(@NonNull BitbucketApi api, @NonNull io.jenkins.blueocean.rest.Reachable parent)
      Convert a BbRepo to ScmRepository.
      Parameters:
      api - BitbucketApi
      parent - Reachable parent
      Returns:
      ScmRepository