Package hudson.scm
Class SubversionSCM.DescriptorImpl
- All Implemented Interfaces:
ModelObject,Saveable,Loadable,OnMaster
- Enclosing class:
- SubversionSCM
@Extension
public static class SubversionSCM.DescriptorImpl
extends SCMDescriptor<SubversionSCM>
implements ModelObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStoresSVNAuthenticationfor a single realm.static final classUsername/password based authentication.static final classPublic key authentication for Subversion over SSH.static final classSSL client certificate based authentication.Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.scm.SCMDescriptor
repositoryBrowserFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDescriptorImpl(Class clazz, Class<? extends RepositoryBrowser> repositoryBrowser) -
Method Summary
Modifier and TypeMethodDescriptionorg.tmatesoft.svn.core.SVNNodeKindcheckRepositoryPath(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) Deprecated.org.tmatesoft.svn.core.SVNNodeKindcheckRepositoryPath(Item context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) org.tmatesoft.svn.core.SVNNodeKindcheckRepositoryPath(Job context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) Deprecated.booleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) org.tmatesoft.svn.core.auth.ISVNAuthenticationProviderDeprecated.as of 1.18 Now that Jenkins allows different credentials to be given in different jobs, The caller should usecreateAuthenticationProvider(AbstractProject)to indicate the project in which the subversion operation is performed.org.tmatesoft.svn.core.auth.ISVNAuthenticationProvidercreateAuthenticationProvider(AbstractProject<?, ?> inContextOf) Deprecated.as of 2.0Validates the excludeCommitMessages fielddoCheckExcludedRegions(String value) Validates the excludeRegions RegexdoCheckExcludedRevprop(Item context, String value, String remoteLocation, String remoteCredentialsId) Validates the remote server supports custom revision propertiesdoCheckExcludedUsers(String value) Validates the excludeUsers fielddoCheckIncludedRegions(String value) Validates the includedRegions RegexdoCheckRemote(org.kohsuke.stapler.StaplerRequest2 req, AbstractProject context, String value, String credentialsId) Deprecated.retained for API compatibility onlyvoiddoPostCredential(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Submits the authentication info.static StringgetRelativePath(org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.SVNRepository repository) protected org.tmatesoft.svn.core.io.SVNRepositorygetRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) protected org.tmatesoft.svn.core.io.SVNRepositorygetRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials) protected org.tmatesoft.svn.core.io.SVNRepositorygetRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.ISVNSession session) protected org.tmatesoft.svn.core.io.SVNRepositorygetRepository(Item context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session) protected org.tmatesoft.svn.core.io.SVNRepositorygetRepository(Job context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session) Deprecated.intbooleanisApplicable(Job project) booleanbooleanbooleanvoidload()newInstance(org.kohsuke.stapler.StaplerRequest2 staplerRequest, net.sf.json.JSONObject jsonObject) voidpostCredential(AbstractProject inContextOf, String url, String username, String password, File keyFile, PrintWriter logWriter) voidpostCredential(String url, UserProvidedCredential upc, PrintWriter logWriter) Submits the authentication info.voidpostCredential(String url, String username, String password, File keyFile, PrintWriter logWriter) Deprecated.voidsetGlobalExcludedRevprop(String globalExcludedRevprop) voidsetWorkspaceFormat(int workspaceFormat) Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicableMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl() -
DescriptorImpl
-
-
Method Details
-
load
public void load()- Specified by:
loadin interfaceLoadable- Overrides:
loadin classSCMDescriptor<SubversionSCM>
-
newInstance
public SCM newInstance(org.kohsuke.stapler.StaplerRequest2 staplerRequest, net.sf.json.JSONObject jsonObject) throws Descriptor.FormException - Overrides:
newInstancein classDescriptor<SCM>- Throws:
Descriptor.FormException
-
isApplicable
- Overrides:
isApplicablein classSCMDescriptor<SubversionSCM>
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classDescriptor<SCM>
-
setGlobalExcludedRevprop
-
getGlobalExcludedRevprop
-
getWorkspaceFormat
public int getWorkspaceFormat() -
setWorkspaceFormat
public void setWorkspaceFormat(int workspaceFormat) -
isValidateRemoteUpToVar
public boolean isValidateRemoteUpToVar() -
isStoreAuthToDisk
public boolean isStoreAuthToDisk() -
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
configurein classDescriptor<SCM>- Throws:
Descriptor.FormException
-
isBrowserReusable
- Overrides:
isBrowserReusablein classSCMDescriptor<SubversionSCM>
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermissionin classDescriptor<SCM>
-
createAuthenticationProvider
@Deprecated public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider(AbstractProject<?, ?> inContextOf) Deprecated.as of 2.0CreatesISVNAuthenticationProviderbacked bycredentials. This method must be invoked on the master, but the returned object is remotable.Therefore, to access
ISVNAuthenticationProvider, you need to call this method on the master, then pass the object to the slave side, then callSubversionSCM.createSvnClientManager(ISVNAuthenticationProvider)on the slave. -
createAuthenticationProvider
@Deprecated public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider()Deprecated.as of 1.18 Now that Jenkins allows different credentials to be given in different jobs, The caller should usecreateAuthenticationProvider(AbstractProject)to indicate the project in which the subversion operation is performed. -
doPostCredential
@POST public void doPostCredential(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Submits the authentication info.- Throws:
IOExceptionjakarta.servlet.ServletException
-
postCredential
public void postCredential(String url, String username, String password, File keyFile, PrintWriter logWriter) throws org.tmatesoft.svn.core.SVNException, IOException Deprecated.- Throws:
org.tmatesoft.svn.core.SVNExceptionIOException
-
postCredential
public void postCredential(AbstractProject inContextOf, String url, String username, String password, File keyFile, PrintWriter logWriter) throws org.tmatesoft.svn.core.SVNException, IOException - Throws:
org.tmatesoft.svn.core.SVNExceptionIOException
-
postCredential
public void postCredential(String url, UserProvidedCredential upc, PrintWriter logWriter) throws org.tmatesoft.svn.core.SVNException, IOException Submits the authentication info. This code is fairly ugly because of the way SVNKit handles credentials.- Throws:
org.tmatesoft.svn.core.SVNExceptionIOException
-
doCheckRemote
@CheckForNull @Deprecated public FormValidation doCheckRemote(org.kohsuke.stapler.StaplerRequest2 req, @AncestorInPath AbstractProject context, @QueryParameter String value, @QueryParameter String credentialsId) Deprecated.retained for API compatibility only -
checkRepositoryPath
@Deprecated public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) throws org.tmatesoft.svn.core.SVNException Deprecated.- Throws:
org.tmatesoft.svn.core.SVNException
-
checkRepositoryPath
@Deprecated public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(Job context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) throws org.tmatesoft.svn.core.SVNException Deprecated.- Throws:
org.tmatesoft.svn.core.SVNException
-
checkRepositoryPath
public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(Item context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) throws org.tmatesoft.svn.core.SVNException - Throws:
org.tmatesoft.svn.core.SVNException
-
getRepository
@Deprecated protected org.tmatesoft.svn.core.io.SVNRepository getRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) throws org.tmatesoft.svn.core.SVNException - Throws:
org.tmatesoft.svn.core.SVNException
-
getRepository
@Deprecated protected org.tmatesoft.svn.core.io.SVNRepository getRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.ISVNSession session) throws org.tmatesoft.svn.core.SVNException - Throws:
org.tmatesoft.svn.core.SVNException
-
getRepository
@Deprecated protected org.tmatesoft.svn.core.io.SVNRepository getRepository(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials) throws org.tmatesoft.svn.core.SVNException- Throws:
org.tmatesoft.svn.core.SVNException
-
getRepository
@Deprecated protected org.tmatesoft.svn.core.io.SVNRepository getRepository(Job context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session) throws org.tmatesoft.svn.core.SVNExceptionDeprecated.- Throws:
org.tmatesoft.svn.core.SVNException
-
getRepository
protected org.tmatesoft.svn.core.io.SVNRepository getRepository(Item context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String, com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session) throws org.tmatesoft.svn.core.SVNException- Throws:
org.tmatesoft.svn.core.SVNException
-
getRelativePath
public static String getRelativePath(org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.SVNRepository repository) throws org.tmatesoft.svn.core.SVNException - Throws:
org.tmatesoft.svn.core.SVNException
-
doCheckExcludedRegions
public FormValidation doCheckExcludedRegions(@QueryParameter String value) throws IOException, jakarta.servlet.ServletException Validates the excludeRegions Regex- Throws:
IOExceptionjakarta.servlet.ServletException
-
doCheckIncludedRegions
public FormValidation doCheckIncludedRegions(@QueryParameter String value) throws IOException, jakarta.servlet.ServletException Validates the includedRegions Regex- Throws:
IOExceptionjakarta.servlet.ServletException
-
doCheckExcludedUsers
public FormValidation doCheckExcludedUsers(@QueryParameter String value) throws IOException, jakarta.servlet.ServletException Validates the excludeUsers field- Throws:
IOExceptionjakarta.servlet.ServletException
-
getWorkspaceUpdaterDescriptors
-
doCheckExcludedCommitMessages
public FormValidation doCheckExcludedCommitMessages(@QueryParameter String value) throws IOException, jakarta.servlet.ServletException Validates the excludeCommitMessages field- Throws:
IOExceptionjakarta.servlet.ServletException
-
doCheckExcludedRevprop
public FormValidation doCheckExcludedRevprop(@AncestorInPath Item context, @QueryParameter String value, @QueryParameter String remoteLocation, @QueryParameter String remoteCredentialsId) throws IOException, jakarta.servlet.ServletException Validates the remote server supports custom revision properties- Throws:
IOExceptionjakarta.servlet.ServletException
-
checkRepositoryPath(hudson.model.Job, org.tmatesoft.svn.core.SVNURL, com.cloudbees.plugins.credentials.common.StandardCredentials)