Class AbstractScm
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
io.jenkins.blueocean.rest.impl.pipeline.scm.AbstractScm
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable
- Author:
- Vivek Pandey
-
Field Summary
Fields inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
CREDENTIAL_ID, ID, URI, VALIDATE, X_CREDENTIAL_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected org.kohsuke.stapler.HttpResponse
createResponse
(String credentialId) protected User
Gives authenticated userprotected static String
getCredentialIdFromRequest
(org.kohsuke.stapler.StaplerRequest2 request) protected static AccessControlled
Methods inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
getCredentialId, getId, getOrganizations, getServers, getUri, validateAndCreate
-
Constructor Details
-
Method Details
-
getAuthenticatedUser
Gives authenticated user- Returns:
- logged in
User
- Throws:
io.jenkins.blueocean.commons.ServiceException.UnauthorizedException
-
createResponse
-
getCredentialIdFromRequest
@CheckForNull protected static String getCredentialIdFromRequest(@NonNull org.kohsuke.stapler.StaplerRequest2 request) -
getRootOrgFolder
-
checkPermission
protected void checkPermission()
-