Package hudson.scm.subversion
Class WorkspaceUpdater.UpdateTask
java.lang.Object
hudson.scm.subversion.WorkspaceUpdater.UpdateTask
- All Implemented Interfaces:
Serializable,org.jenkinsci.remoting.SerializableOnlyOverRemoting
- Direct Known Subclasses:
NoopUpdater.TaskImpl,UpdateUpdater.TaskImpl
- Enclosing class:
WorkspaceUpdater
public abstract static class WorkspaceUpdater.UpdateTask
extends Object
implements org.jenkinsci.remoting.SerializableOnlyOverRemoting
This object gets instantiated on the controller and then sent to the agent via remoting,
then used to perform the actual checkout activity.
A number of contextual objects are defined as fields, to be used by the perform() method.
These fields are set by SubversionSCM before the invocation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.tmatesoft.svn.core.auth.ISVNAuthenticationProviderEncapusulates the authentication.Factory for various subversion commands.Connected to build console.Modules to check out.org.tmatesoft.svn.core.wc.SVNClientManagerDeprecated.boolean--quiet for subversion operations.If the build parameter is specified with specific version numbers, this field captures that.In the absence of a revision-specific check out, we want to check out by this timestamp, not just the latest to ensure consistency.Build workspace. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SubversionSCM.External> protected final List<SubversionSCM.External> delegateTo(WorkspaceUpdater wu, int workspaceFormat) Delegates the execution to another updater.protected org.tmatesoft.svn.core.wc.SVNRevisionDetermines the revision to check out for the given location.protected static org.tmatesoft.svn.core.SVNDepthgetSvnDepth(String name) Deprecated.as of 2.10 Use SubversionSCM.ModuleLocation.getSVNDepthFor* functions to correctly interpret module location depth options or SVNDepth.fromString directly if you've taken the depth from another source.abstract List<SubversionSCM.External> perform()Performs the checkout/update.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Field Details
-
manager
public org.tmatesoft.svn.core.wc.SVNClientManager managerDeprecated.as of 1.40 UseclientManager -
clientManager
Factory for various subversion commands. -
authProvider
public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider authProviderEncapusulates the authentication. Connected back to Jenkins controller. Never null. -
timestamp
In the absence of a revision-specific check out, we want to check out by this timestamp, not just the latest to ensure consistency. Never null. -
listener
Connected to build console. Never null. -
location
Modules to check out. Never null. -
ws
Build workspace. Never null. -
quietOperation
public boolean quietOperation--quiet for subversion operations. Default = false. -
revisions
If the build parameter is specified with specific version numbers, this field captures that. Can be null.
-
-
Constructor Details
-
UpdateTask
public UpdateTask()
-
-
Method Details
-
perform
Performs the checkout/update.Use the fields defined in this class that defines the parameters of the check out.
- Returns:
- Where svn:external mounting happened. Can be empty but never null.
- Throws:
IOExceptionInterruptedException
-
delegateTo
protected List<SubversionSCM.External> delegateTo(WorkspaceUpdater.UpdateTask t) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
delegateTo
protected final List<SubversionSCM.External> delegateTo(WorkspaceUpdater wu, int workspaceFormat) throws IOException, InterruptedException Delegates the execution to another updater. This is most often useful to fall back to the fresh check out by usingCheckoutUpdater.- Throws:
IOExceptionInterruptedException
-
getRevision
Determines the revision to check out for the given location. -
getSvnDepth
Deprecated.as of 2.10 Use SubversionSCM.ModuleLocation.getSVNDepthFor* functions to correctly interpret module location depth options or SVNDepth.fromString directly if you've taken the depth from another source.ReturnsSVNDepthby string value.- Returns:
SVNDepthvalue.
-
clientManager