Package jenkins.scm.impl.subversion
Class SubversionSCMSource
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
jenkins.scm.impl.subversion.SubversionSCMSource
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.SCMSource>
public class SubversionSCMSource
extends jenkins.scm.api.SCMSource
A
SCMSource
for Subversion.- Author:
- Stephen Connolly
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
We need to listen out for post-commit hooksstatic class
Our implementation.Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final jenkins.scm.impl.subversion.SubversionSCMSource.StringListComparator
static final Logger
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN
-
Constructor Summary
ConstructorsConstructorDescriptionSubversionSCMSource
(String id, String remoteBase) SubversionSCMSource
(String id, String remoteBase, String credentialsId, String includes, String excludes) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) Gets the repository browser.Gets the credentials id.Gets the comma separated list of exclusions.Gets the comma separated list of inclusions.Gets the base SVN URL of the project.getUuid()
Gets the workspace updater strategy.protected jenkins.scm.api.SCMRevision
retrieve
(String unparsedRevision, TaskListener listener, Item context) protected jenkins.scm.api.SCMRevision
retrieve
(jenkins.scm.api.SCMHead head, TaskListener listener) protected void
retrieve
(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) retrieveRevisions
(TaskListener listener, Item context) void
setBrowser
(SubversionRepositoryBrowser browser) void
setCredentialsId
(String credentialsId) void
setExcludes
(String excludes) void
setIncludes
(String includes) void
setWorkspaceUpdater
(WorkspaceUpdater workspaceUpdater) Methods inherited from class jenkins.scm.api.SCMSource
afterSave, build, canProbe, checkInterrupt, createProbe, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTraits, getTrustedRevision, hashCode, hasId, isCategoryEnabled, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveActions, retrieveActions, retrieveRevisions, setId, setOwner, setTraits, toString, withId
-
Field Details
-
COMPARATOR
public static final jenkins.scm.impl.subversion.SubversionSCMSource.StringListComparator COMPARATOR -
LOGGER
-
-
Constructor Details
-
Method Details
-
getCredentialsId
Gets the credentials id.- Returns:
- the credentials id.
-
setCredentialsId
-
getExcludes
Gets the comma separated list of exclusions.- Returns:
- the comma separated list of exclusions.
-
setExcludes
-
getIncludes
Gets the comma separated list of inclusions.- Returns:
- the comma separated list of inclusions.
-
setIncludes
-
getBrowser
Gets the repository browser.- Returns:
- the repository browser to use.
-
setBrowser
-
getWorkspaceUpdater
Gets the workspace updater strategy.- Returns:
- the workspace updater to use.
-
setWorkspaceUpdater
-
getRemoteBase
Gets the base SVN URL of the project.- Returns:
- the base SVN URL of the project.
-
getUuid
-
retrieve
@NonNull protected void retrieve(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer, @CheckForNull jenkins.scm.api.SCMHeadEvent<?> event, @NonNull TaskListener listener) throws IOException, InterruptedException - Specified by:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(@NonNull jenkins.scm.api.SCMHead head, @NonNull TaskListener listener) throws IOException - Overrides:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(String unparsedRevision, TaskListener listener, Item context) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieveRevisions
protected Set<String> retrieveRevisions(TaskListener listener, Item context) throws IOException, InterruptedException - Overrides:
retrieveRevisions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
build
@NonNull public SubversionSCM build(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) - Specified by:
build
in classjenkins.scm.api.SCMSource
-