java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.impl.pipeline.scm.ScmRepository
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable
public abstract class ScmRepository
extends io.jenkins.blueocean.rest.model.Resource
SCM repository
- Author:
- Vivek Pandey
-
Field Summary 
Fields
-
Constructor Summary 
Constructors
-
Method Summary 
Default branch of this repo
Permissions attached to this SCM repo
abstract boolean
Whether this repository is private
Methods inherited from class io.jenkins.blueocean.rest.model.Resource 
getLinks, getState
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jenkins.blueocean.rest.Reachable 
getLink
-
Field Details 
-
NAME 
public static final String NAME
- See Also:
-
-
PRIVATE 
public static final String PRIVATE
- See Also:
-
-
DESCRIPTION 
public static final String DESCRIPTION
- See Also:
-
-
DEFAULT_BRANCH 
public static final String DEFAULT_BRANCH
- See Also:
-
-
PERMISSIONS 
public static final String PERMISSIONS
- See Also:
-
-
Constructor Details 
-
ScmRepository 
public ScmRepository()
-
Method Details 
-
getName 
@Exported(name="name")
public abstract String getName()
Name of repository
-
isPrivate 
@Exported(name="private")
public abstract boolean isPrivate()
Whether this repository is private
-
getDescription 
@Exported(name="description")
public abstract String getDescription()
Description of SCM repo
-
getDefaultBranch 
@Exported(name="defaultBranch")
public abstract String getDefaultBranch()
Default branch of this repo
-
getPermissions 
@Exported(name="permissions")
public abstract Map<String,Boolean> getPermissions()
Permissions attached to this SCM repo