Class 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 Detail

      • BbRepo

        public BbRepo()
    • Method Detail

      • 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