Class BbRepo
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getName()
abstract BbOrg
getOrg()
abstract String
getSlug()
abstract boolean
isGit()
Deprecated.Now always true.abstract boolean
io.jenkins.blueocean.rest.impl.pipeline.scm.ScmRepository
toScmRepository
(BitbucketApi api, io.jenkins.blueocean.rest.Reachable parent) Convert aBbRepo
toScmRepository
.
-
Constructor Details
-
BbRepo
public BbRepo()
-
-
Method Details
-
getSlug
- Returns:
- Repo slug
-
getName
- Returns:
- Repo name
-
getOrg
- Returns:
- Bitbucket project/team this repo belongs to
-
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 aBbRepo
toScmRepository
.- Parameters:
api
-BitbucketApi
parent
-Reachable
parent- Returns:
- ScmRepository
-