Class AbstractScm

  • All Implemented Interfaces:
    io.jenkins.blueocean.rest.Reachable

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

      • AbstractScm

        public AbstractScm()
    • Method Detail

      • 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)