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
Modifier and TypeClassDescriptionstatic class
StoresSVNAuthentication
for a single realm.static final class
Username/password based authentication.static final class
Public key authentication for Subversion over SSH.static final class
SSL 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
repositoryBrowser
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ModifierConstructorDescriptionprotected
DescriptorImpl
(Class clazz, Class<? extends RepositoryBrowser> repositoryBrowser) -
Method Summary
Modifier and TypeMethodDescriptionorg.tmatesoft.svn.core.SVNNodeKind
checkRepositoryPath
(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) Deprecated.org.tmatesoft.svn.core.SVNNodeKind
checkRepositoryPath
(Item context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) org.tmatesoft.svn.core.SVNNodeKind
checkRepositoryPath
(Job context, org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) Deprecated.boolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
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.org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
createAuthenticationProvider
(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.StaplerRequest req, AbstractProject context, String value, String credentialsId) Deprecated.retained for API compatibility onlyvoid
doPostCredential
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Submits the authentication info.static String
getRelativePath
(org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.SVNRepository repository) protected org.tmatesoft.svn.core.io.SVNRepository
getRepository
(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL) 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) protected org.tmatesoft.svn.core.io.SVNRepository
getRepository
(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.ISVNSession session) 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) 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) Deprecated.int
boolean
isApplicable
(Job project) boolean
boolean
boolean
void
load()
newInstance
(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject jsonObject) void
postCredential
(AbstractProject inContextOf, String url, String username, String password, File keyFile, PrintWriter logWriter) void
postCredential
(String url, UserProvidedCredential upc, PrintWriter logWriter) Submits the authentication info.void
postCredential
(String url, String username, String password, File keyFile, PrintWriter logWriter) Deprecated.void
setGlobalExcludedRevprop
(String globalExcludedRevprop) void
setWorkspaceFormat
(int workspaceFormat) Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl() -
DescriptorImpl
-
-
Method Details
-
load
public void load()- Specified by:
load
in interfaceLoadable
- Overrides:
load
in classSCMDescriptor<SubversionSCM>
-
newInstance
public SCM newInstance(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject jsonObject) throws Descriptor.FormException - Overrides:
newInstance
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
isApplicable
- Overrides:
isApplicable
in classSCMDescriptor<SubversionSCM>
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in 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.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
configure
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
isBrowserReusable
- Overrides:
isBrowserReusable
in classSCMDescriptor<SubversionSCM>
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermission
in classDescriptor<SCM>
-
createAuthenticationProvider
@Deprecated public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider(AbstractProject<?, ?> inContextOf) Deprecated.as of 2.0CreatesISVNAuthenticationProvider
backed 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.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException Submits the authentication info.- Throws:
IOException
javax.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.SVNException
IOException
-
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.SVNException
IOException
-
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.SVNException
IOException
-
doCheckRemote
@CheckForNull @Deprecated public FormValidation doCheckRemote(org.kohsuke.stapler.StaplerRequest 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, javax.servlet.ServletException Validates the excludeRegions Regex- Throws:
IOException
javax.servlet.ServletException
-
doCheckIncludedRegions
public FormValidation doCheckIncludedRegions(@QueryParameter String value) throws IOException, javax.servlet.ServletException Validates the includedRegions Regex- Throws:
IOException
javax.servlet.ServletException
-
doCheckExcludedUsers
public FormValidation doCheckExcludedUsers(@QueryParameter String value) throws IOException, javax.servlet.ServletException Validates the excludeUsers field- Throws:
IOException
javax.servlet.ServletException
-
getWorkspaceUpdaterDescriptors
-
doCheckExcludedCommitMessages
public FormValidation doCheckExcludedCommitMessages(@QueryParameter String value) throws IOException, javax.servlet.ServletException Validates the excludeCommitMessages field- Throws:
IOException
javax.servlet.ServletException
-
doCheckExcludedRevprop
public FormValidation doCheckExcludedRevprop(@AncestorInPath Item context, @QueryParameter String value, @QueryParameter String remoteLocation, @QueryParameter String remoteCredentialsId) throws IOException, javax.servlet.ServletException Validates the remote server supports custom revision properties- Throws:
IOException
javax.servlet.ServletException
-
checkRepositoryPath(hudson.model.Job, org.tmatesoft.svn.core.SVNURL, com.cloudbees.plugins.credentials.common.StandardCredentials)