public class NullSCMSource extends SCMSource
SCMSource.SourceByItemExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
ID
The "magic" id of the
NullSCMSource. |
| Constructor and Description |
|---|
NullSCMSource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SCM |
build(SCMHead head,
SCMRevision revision)
Builds a
SCM instance for the specified head and revision, no validation of the
head is performed, a revision for a different head or source will be treated as equivalent to a
null revision. |
protected void |
retrieve(SCMSourceCriteria criteria,
SCMHeadObserver observer,
SCMHeadEvent<?> event,
TaskListener listener)
SPI: Fetches the latest heads and corresponding revisions that are originating from the supplied event.
|
afterSave, build, canProbe, checkInterrupt, createProbe, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTraits, getTrustedRevision, hashCode, hasId, isCategoryEnabled, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveActions, retrieveActions, retrieveRevisions, setId, setOwner, setTraits, toString, withIdpublic static final String ID
NullSCMSource.protected void retrieve(@CheckForNull
SCMSourceCriteria criteria,
@NonNull
SCMHeadObserver observer,
@CheckForNull
SCMHeadEvent<?> event,
@NonNull
TaskListener listener)
throws IOException,
InterruptedException
It is vitally important that implementations must periodically call SCMSource.checkInterrupt()
otherwise it will be impossible for users to interrupt the operation.
The default implementation wraps the SCMHeadObserver using
SCMHeadEvent.filter(SCMSource, SCMHeadObserver) and delegates to
SCMSource.retrieve(SCMSourceCriteria, SCMHeadObserver, TaskListener)
retrieve in class SCMSourcecriteria - the criteria to use, if non-null them implementations mustfilter all
SCMHead instances against the
SCMSourceCriteria.isHead(SCMSourceCriteria.Probe, TaskListener)
before passing through to the SCMHeadObserver.observer - an observer of interim results, if the event is non-null then the observer will already
have been filtered with SCMHeadEvent.filter(SCMSource, SCMHeadObserver).event - the (optional) event from which the operation should be scoped.listener - the task listener.IOException - if an error occurs while performing the operation.InterruptedException - if any thread has interrupted the current thread.@NonNull public SCM build(@NonNull SCMHead head, @CheckForNull SCMRevision revision)
SCM instance for the specified head and revision, no validation of the
head is performed, a revision for a different head or source will be treated as equivalent to a
null revision.Copyright © 2016–2019. All rights reserved.