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
io.jenkins.blueocean.blueocean_git_pipeline.GitScm
All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable

public class GitScm extends io.jenkins.blueocean.rest.impl.pipeline.scm.AbstractScm
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected final io.jenkins.blueocean.rest.Reachable
     

    Fields inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm

    CREDENTIAL_ID, URI, VALIDATE, X_CREDENTIAL_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    GitScm(io.jenkins.blueocean.rest.Reachable parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.cloudbees.plugins.credentials.common.StandardCredentials
     
     
     
    io.jenkins.blueocean.rest.hal.Link
     
    io.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.impl.pipeline.scm.ScmOrganization>
     
    io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpointContainer
     
    protected org.kohsuke.stapler.StaplerRequest
     
     
    static String
    makeCredentialId(String repositoryUrl)
    Create the credentialId for a specific repositoryUrl (which will be normalized)
    org.kohsuke.stapler.HttpResponse
    validateAndCreate(net.sf.json.JSONObject request)
     

    Methods inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.AbstractScm

    checkPermission, createResponse, getAuthenticatedUser, getCredentialIdFromRequest, getRootOrgFolder

    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
  • Field Details

    • ID

      public static final String ID
      See Also:
    • parent

      protected final io.jenkins.blueocean.rest.Reachable parent
  • Constructor Details

    • GitScm

      public GitScm(io.jenkins.blueocean.rest.Reachable parent)
  • Method Details

    • makeCredentialId

      public static String makeCredentialId(String repositoryUrl)
      Create the credentialId for a specific repositoryUrl (which will be normalized)
      Parameters:
      repositoryUrl -
      Returns:
      credentialId string
    • getLink

      public io.jenkins.blueocean.rest.hal.Link getLink()
    • getId

      @NonNull public String getId()
      Specified by:
      getId in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
    • getUri

      @NonNull public String getUri()
      Specified by:
      getUri in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
    • getStaplerRequest

      protected org.kohsuke.stapler.StaplerRequest getStaplerRequest()
    • getCredentialId

      public String getCredentialId()
      Specified by:
      getCredentialId in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
    • getCredentialForCurrentRequest

      protected com.cloudbees.plugins.credentials.common.StandardCredentials getCredentialForCurrentRequest()
    • getOrganizations

      public io.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.impl.pipeline.scm.ScmOrganization> getOrganizations()
      Specified by:
      getOrganizations in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
    • getServers

      public io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpointContainer getServers()
      Specified by:
      getServers in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
    • validateAndCreate

      public org.kohsuke.stapler.HttpResponse validateAndCreate(@JsonBody net.sf.json.JSONObject request)
      Specified by:
      validateAndCreate in class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm