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
ASCMSource
for Subversion.- Author:
- Stephen Connolly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubversionSCMSource.DescriptorImpl
static class
SubversionSCMSource.ListenerImpl
We need to listen out for post-commit hooksstatic class
SubversionSCMSource.SCMRevisionImpl
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
Fields Modifier and Type Field Description static jenkins.scm.impl.subversion.SubversionSCMSource.StringListComparator
COMPARATOR
static Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description SubversionSCMSource(String id, String remoteBase)
SubversionSCMSource(String id, String remoteBase, String credentialsId, String includes, String excludes)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubversionSCM
build(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision)
SubversionRepositoryBrowser
getBrowser()
Gets the repository browser.String
getCredentialsId()
Gets the credentials id.String
getExcludes()
Gets the comma separated list of exclusions.String
getIncludes()
Gets the comma separated list of inclusions.String
getRemoteBase()
Gets the base SVN URL of the project.String
getUuid()
WorkspaceUpdater
getWorkspaceUpdater()
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)
protected Set<String>
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 Detail
-
COMPARATOR
public static final jenkins.scm.impl.subversion.SubversionSCMSource.StringListComparator COMPARATOR
-
LOGGER
public static final Logger LOGGER
-
-
Method Detail
-
getCredentialsId
public String getCredentialsId()
Gets the credentials id.- Returns:
- the credentials id.
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(String credentialsId)
-
getExcludes
public String getExcludes()
Gets the comma separated list of exclusions.- Returns:
- the comma separated list of exclusions.
-
setExcludes
@DataBoundSetter public void setExcludes(String excludes)
-
getIncludes
public String getIncludes()
Gets the comma separated list of inclusions.- Returns:
- the comma separated list of inclusions.
-
setIncludes
@DataBoundSetter public void setIncludes(String includes)
-
getBrowser
public SubversionRepositoryBrowser getBrowser()
Gets the repository browser.- Returns:
- the repository browser to use.
-
setBrowser
@DataBoundSetter public void setBrowser(SubversionRepositoryBrowser browser)
-
getWorkspaceUpdater
public WorkspaceUpdater getWorkspaceUpdater()
Gets the workspace updater strategy.- Returns:
- the workspace updater to use.
-
setWorkspaceUpdater
@DataBoundSetter public void setWorkspaceUpdater(WorkspaceUpdater workspaceUpdater)
-
getRemoteBase
public String getRemoteBase()
Gets the base SVN URL of the project.- Returns:
- the base SVN URL of the project.
-
getUuid
@CheckForNull public String 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
-
-