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

public abstract class AbstractScm extends Scm
Author:
Vivek Pandey
  • Constructor Details

    • AbstractScm

      public AbstractScm()
  • Method Details

    • getAuthenticatedUser

      protected User getAuthenticatedUser()
      Gives authenticated user
      Returns:
      logged in User
      Throws:
      io.jenkins.blueocean.commons.ServiceException.UnauthorizedException
    • createResponse

      protected org.kohsuke.stapler.HttpResponse createResponse(String credentialId)
    • getCredentialIdFromRequest

      @CheckForNull protected static String getCredentialIdFromRequest(@NonNull org.kohsuke.stapler.StaplerRequest request)
    • getRootOrgFolder

      protected static AccessControlled getRootOrgFolder()
    • checkPermission

      protected void checkPermission()