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
Constructors Constructor Description BbRepo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract String
getName()
abstract BbOrg
getOrg()
abstract String
getSlug()
abstract boolean
isGit()
Deprecated.Now always true.abstract boolean
isPrivate()
io.jenkins.blueocean.rest.impl.pipeline.scm.ScmRepository
toScmRepository(BitbucketApi api, io.jenkins.blueocean.rest.Reachable parent)
Convert aBbRepo
toScmRepository
.
-
-
-
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 aBbRepo
toScmRepository
.- Parameters:
api
-BitbucketApi
parent
-Reachable
parent- Returns:
- ScmRepository
-
-