|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.scm.SubversionSCM
public class SubversionSCM
Subversion SCM.
SubversionSCM.DescriptorImpl.createAuthenticationProvider(AbstractProject)
so that it can use the credentials (username, password, etc.) that the user entered for Hudson.
See the javadoc of this method for the precautions you need to take if you run Subversion operations
remotely on slaves.
browser), remotable FilePath.FileCallables all
need to be declared as static inner classes.
| Nested Class Summary | |
|---|---|
static class |
SubversionSCM.DescriptorImpl
|
static class |
SubversionSCM.External
Information about svn:external |
static class |
SubversionSCM.ModuleLocation
small structure to store local and remote (repository) location information of the repository. |
static class |
SubversionSCM.RevisionPolicy
Supported revision policies. |
static class |
SubversionSCM.SvnInfo
|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static int |
DEFAULT_TIMEOUT
Network timeout in milliseconds. |
static boolean |
POLL_FROM_MASTER
Property to control whether SCM polling happens from the slave or master |
protected static String |
UNDEFINED_REVISION_VALUE
|
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
boolean doRevert,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages)
Deprecated. as of 1.xxx |
|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
boolean doRevert,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages,
String includedRegions)
Deprecated. as of 1.23 |
|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions)
Deprecated. as of 1.315 |
|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop)
Deprecated. as of 1.324 |
|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages)
Deprecated. as of 1.328 |
|
SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
WorkspaceUpdater workspaceUpdater,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages,
String includedRegions)
|
|
SubversionSCM(String svnUrl)
Convenience constructor, especially during testing. |
|
SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser)
Deprecated. as of 1.286 |
|
SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions)
Deprecated. as of 1.311 |
|
SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop)
Deprecated. as of 1.315 |
|
SubversionSCM(String svnUrl,
String local)
Convenience constructor, especially during testing. |
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
Sets the SVN_REVISION environment variable during the build. |
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
static org.tmatesoft.svn.core.wc.SVNClientManager |
createSvnClientManager(hudson.model.AbstractProject context)
Creates SVNClientManager for code running on the master. |
static org.tmatesoft.svn.core.wc.SVNClientManager |
createSvnClientManager(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider)
Creates SVNClientManager. |
static void |
enableSshDebug(Level level)
Enables trace logging of Ganymed SSH library. |
boolean |
equals(Object o)
|
SubversionRepositoryBrowser |
getBrowser()
|
SubversionSCM.DescriptorImpl |
getDescriptor()
|
String |
getExcludedCommitMessages()
|
String[] |
getExcludedCommitMessagesNormalized()
|
String |
getExcludedRegions()
|
String[] |
getExcludedRegionsNormalized()
|
String |
getExcludedRevprop()
|
String |
getExcludedUsers()
|
Set<String> |
getExcludedUsersNormalized()
|
String |
getIncludedRegions()
|
String[] |
getIncludedRegionsNormalized()
|
SubversionSCM.ModuleLocation[] |
getLocations()
list of all configured svn locations |
SubversionSCM.ModuleLocation[] |
getLocations(hudson.model.AbstractBuild<?,?> build)
list of all configured svn locations, expanded according to build parameters values; |
hudson.FilePath |
getModuleRoot(hudson.FilePath workspace)
|
hudson.FilePath[] |
getModuleRoots(hudson.FilePath workspace)
|
String |
getModules()
Deprecated. as of 1.91. Use getLocations() instead. |
static File |
getRevisionFile(hudson.model.AbstractBuild build)
Gets the file that stores the revision. |
static File |
getSubversionConfigDir()
Return subversion configuration directory. |
WorkspaceUpdater |
getWorkspaceUpdater()
|
int |
hashCode()
|
static void |
init()
|
static boolean |
isEqualsWithoutOrdering(Object[] array1,
Object[] array2)
Verify if two arrays of objects are equal without same order of elements. |
boolean |
repositoryLocationsNoLongerExist(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener)
|
boolean |
requiresWorkspaceForPolling()
Polling can happen on the master and does not require a workspace. |
void |
setWorkspaceUpdater(WorkspaceUpdater workspaceUpdater)
|
| Methods inherited from class hudson.scm.SCM |
|---|
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, supportsPolling |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String UNDEFINED_REVISION_VALUE
public static int DEFAULT_TIMEOUT
public static boolean POLL_FROM_MASTER
| Constructor Detail |
|---|
public SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser)
public SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions)
public SubversionSCM(String[] remoteLocations,
String[] localLocations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop)
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions)
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop)
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages)
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
boolean doRevert,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages)
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
boolean useUpdate,
boolean doRevert,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages,
String includedRegions)
@DataBoundConstructor
public SubversionSCM(List<SubversionSCM.ModuleLocation> locations,
WorkspaceUpdater workspaceUpdater,
SubversionRepositoryBrowser browser,
String excludedRegions,
String excludedUsers,
String excludedRevprop,
String excludedCommitMessages,
String includedRegions)
public SubversionSCM(String svnUrl)
public SubversionSCM(String svnUrl,
String local)
| Method Detail |
|---|
public String getModules()
getLocations() instead.
@Exported public SubversionSCM.ModuleLocation[] getLocations()
@Exported public WorkspaceUpdater getWorkspaceUpdater()
public void setWorkspaceUpdater(WorkspaceUpdater workspaceUpdater)
public SubversionSCM.ModuleLocation[] getLocations(hudson.model.AbstractBuild<?,?> build)
build - If non-null, variable expansions are performed against the build parameters.@Exported public SubversionRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCM@Exported public String getExcludedRegions()
public String[] getExcludedRegionsNormalized()
@Exported public String getIncludedRegions()
public String[] getIncludedRegionsNormalized()
@Exported public String getExcludedUsers()
public Set<String> getExcludedUsersNormalized()
@Exported public String getExcludedRevprop()
@Exported public String getExcludedCommitMessages()
public String[] getExcludedCommitMessagesNormalized()
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
buildEnvVars in class hudson.scm.SCMpublic static File getSubversionConfigDir()
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCM
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
throws IOException,
InterruptedException
checkout in class hudson.scm.SCMIOException
InterruptedExceptionpublic static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProvider)
SVNClientManager.
This method must be executed on the slave where svn operations are performed.
authProvider - The value obtained from SubversionSCM.DescriptorImpl.createAuthenticationProvider(AbstractProject).
If the operation runs on slaves,
(and properly remoted, if the svn operations run on slaves.)public static org.tmatesoft.svn.core.wc.SVNClientManager createSvnClientManager(hudson.model.AbstractProject context)
SVNClientManager for code running on the master.
CAUTION: this code only works when invoked on master. On slaves, use
createSvnClientManager(ISVNAuthenticationProvider) and get ISVNAuthenticationProvider
from the master via remoting.
public static File getRevisionFile(hudson.model.AbstractBuild build)
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOException
InterruptedException
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
throws IOException,
InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOException
InterruptedExceptionpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCMpublic SubversionSCM.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>getDescriptor in class hudson.scm.SCMpublic hudson.FilePath getModuleRoot(hudson.FilePath workspace)
getModuleRoot in class hudson.scm.SCMpublic hudson.FilePath[] getModuleRoots(hudson.FilePath workspace)
getModuleRoots in class hudson.scm.SCM
public boolean repositoryLocationsNoLongerExist(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener)
public static void init()
public static void enableSshDebug(Level level)
public boolean equals(Object o)
equals in class Object
public static boolean isEqualsWithoutOrdering(Object[] array1,
Object[] array2)
array1 - first array.array2 - second array.
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||