Package hudson.scm
Class SubversionSCM.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<SubversionSCM>
-
- hudson.scm.SubversionSCM.DescriptorImpl
-
- All Implemented Interfaces:
ModelObject
,Saveable
,OnMaster
- Enclosing class:
- SubversionSCM
@Extension public static class SubversionSCM.DescriptorImpl extends SCMDescriptor<SubversionSCM> implements ModelObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubversionSCM.DescriptorImpl.Credential
StoresSVNAuthentication
for a single realm.static class
SubversionSCM.DescriptorImpl.PasswordCredential
Username/password based authentication.static class
SubversionSCM.DescriptorImpl.SshPublicKeyCredential
Public key authentication for Subversion over SSH.static class
SubversionSCM.DescriptorImpl.SslClientCertificateCredential
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
Constructors Modifier Constructor Description DescriptorImpl()
protected
DescriptorImpl(Class clazz, Class<? extends RepositoryBrowser> repositoryBrowser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.tmatesoft.svn.core.SVNNodeKind
checkRepositoryPath(AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL)
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
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.org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
createAuthenticationProvider(AbstractProject<?,?> inContextOf)
Deprecated.as of 2.0FormValidation
doCheckExcludedCommitMessages(String value)
Validates the excludeCommitMessages fieldFormValidation
doCheckExcludedRegions(String value)
Validates the excludeRegions RegexFormValidation
doCheckExcludedUsers(String value)
Validates the excludeUsers fieldFormValidation
doCheckIncludedRegions(String value)
Validates the includedRegions RegexFormValidation
doCheckRemote(org.kohsuke.stapler.StaplerRequest req, AbstractProject context, String value, String credentialsId)
Deprecated.retained for API compatibility onlyFormValidation
doCheckRevisionPropertiesSupported(Item context, String value, String credentialsId, String excludedRevprop)
Validates the remote server supports custom revision propertiesvoid
doPostCredential(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Submits the authentication info.String
getDisplayName()
String
getGlobalExcludedRevprop()
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.Permission
getRequiredGlobalConfigPagePermission()
int
getWorkspaceFormat()
List<WorkspaceUpdaterDescriptor>
getWorkspaceUpdaterDescriptors()
boolean
isApplicable(Job project)
boolean
isBrowserReusable(SubversionSCM x, SubversionSCM y)
boolean
isStoreAuthToDisk()
boolean
isValidateRemoteUpToVar()
void
load()
SCM
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, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Constructor Detail
-
DescriptorImpl
public DescriptorImpl()
-
DescriptorImpl
protected DescriptorImpl(Class clazz, Class<? extends RepositoryBrowser> repositoryBrowser)
-
-
Method Detail
-
load
public void load()
- 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
public boolean isApplicable(Job project)
- Overrides:
isApplicable
in classSCMDescriptor<SubversionSCM>
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
setGlobalExcludedRevprop
public void setGlobalExcludedRevprop(String globalExcludedRevprop)
-
getGlobalExcludedRevprop
public String 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
public boolean isBrowserReusable(SubversionSCM x, SubversionSCM y)
- Overrides:
isBrowserReusable
in classSCMDescriptor<SubversionSCM>
-
getRequiredGlobalConfigPagePermission
@NonNull public Permission 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.SVNException
Deprecated.- 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
public List<WorkspaceUpdaterDescriptor> getWorkspaceUpdaterDescriptors()
-
doCheckExcludedCommitMessages
public FormValidation doCheckExcludedCommitMessages(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Validates the excludeCommitMessages field- Throws:
IOException
javax.servlet.ServletException
-
doCheckRevisionPropertiesSupported
public FormValidation doCheckRevisionPropertiesSupported(@AncestorInPath Item context, @QueryParameter String value, @QueryParameter String credentialsId, @QueryParameter String excludedRevprop) throws IOException, javax.servlet.ServletException
Validates the remote server supports custom revision properties- Throws:
IOException
javax.servlet.ServletException
-
-