Class GitScm
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.cloudbees.plugins.credentials.common.StandardCredentials
getId()
io.jenkins.blueocean.rest.hal.Link
getLink()
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
getUri()
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
-
Field Details
-
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
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
- Specified by:
getId
in classio.jenkins.blueocean.rest.impl.pipeline.scm.Scm
-
getUri
- Specified by:
getUri
in classio.jenkins.blueocean.rest.impl.pipeline.scm.Scm
-
getStaplerRequest
protected org.kohsuke.stapler.StaplerRequest getStaplerRequest() -
getCredentialId
- Specified by:
getCredentialId
in classio.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 classio.jenkins.blueocean.rest.impl.pipeline.scm.Scm
-
getServers
public io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpointContainer getServers()- Specified by:
getServers
in classio.jenkins.blueocean.rest.impl.pipeline.scm.Scm
-
validateAndCreate
public org.kohsuke.stapler.HttpResponse validateAndCreate(@JsonBody net.sf.json.JSONObject request) - Specified by:
validateAndCreate
in classio.jenkins.blueocean.rest.impl.pipeline.scm.Scm
-