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 classstatic classWe need to listen out for post-commit hooksstatic classOur implementation.Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItemNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final jenkins.scm.impl.subversion.SubversionSCMSource.StringListComparatorstatic final LoggerFields 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.SCMRevisionretrieve(String unparsedRevision, TaskListener listener, Item context) protected jenkins.scm.api.SCMRevisionretrieve(jenkins.scm.api.SCMHead head, TaskListener listener) protected voidretrieve(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) retrieveRevisions(TaskListener listener, Item context) voidsetBrowser(SubversionRepositoryBrowser browser) voidsetCredentialsId(String credentialsId) voidsetExcludes(String excludes) voidsetIncludes(String includes) voidsetWorkspaceUpdater(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:
retrievein classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(@NonNull jenkins.scm.api.SCMHead head, @NonNull TaskListener listener) throws IOException - Overrides:
retrievein classjenkins.scm.api.SCMSource- Throws:
IOException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(String unparsedRevision, TaskListener listener, Item context) throws IOException, InterruptedException - Overrides:
retrievein classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
retrieveRevisions
protected Set<String> retrieveRevisions(TaskListener listener, Item context) throws IOException, InterruptedException - Overrides:
retrieveRevisionsin classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
build
@NonNull public SubversionSCM build(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) - Specified by:
buildin classjenkins.scm.api.SCMSource
-