Class 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  GitScm.GitScmFactory  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ID  
      protected io.jenkins.blueocean.rest.Reachable parent  
      • 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)  
    • Constructor Detail

      • GitScm

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

      • 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