Uses of Class
jenkins.scm.api.SCMHead
Package
Description
The public API contract of the SCM API plugin.
Do not use.
The mix-in interfaces used by
SCMHead
implementations to advertise that a specific head is not just a regular branch but is actually a special type of
branch such as a change request /
tag / etc.An API/SPI to allow the sharing of common traits between different
SCMSource
and
SCMNavigator
implementations.The common implementations of classes in the public API.
-
Uses of SCMHead in jenkins.scm.api
Modifier and TypeClassDescriptionclass
SCMHeadMigration<S extends SCMSource,
H extends SCMHead, R extends SCMRevision> Modifier and TypeFieldDescriptionstatic final AlternativeUiTextProvider.Message<SCMHead>
SCMHead.PRONOUN
Replaceable pronoun of that points to aSCMHead
.Modifier and TypeMethodDescriptionstatic SCMHead
Runs all registered implementations.abstract SCMHead
Checks whether a given item corresponds to a particular SCM head.final SCMHead
SCMRevision.getHead()
Returns theSCMHead
that thisSCMRevision
belongs to.abstract SCMHead
Perform a migration.static SCMHead
SCMHeadMigration.readResolveSCMHead
(SCMSource source, SCMHead head) Perform a migration.Modifier and TypeMethodDescriptionSCMSource.fetch
(TaskListener listener) Fetches the current list of heads.SCMHeadObserver.AllFinished.getIncludes()
SCMHeadObserver.Filter.getIncludes()
SCMHeadObserver.getIncludes()
SCMHeadObserver.OneFinished.getIncludes()
SCMHeadObserver.Selector.getIncludes()
SCMHeadObserver.Wrapped.getIncludes()
abstract Map<SCMHead,
SCMRevision> SCMSource.parentHeads
(SCMHead head, TaskListener listener) Looks up the immediate parent heads of the specified head within the specified source.SCMHeadObserver.Collector.result()
Returns the collected results.SCMSource.retrieve
(TaskListener listener) SPI: Fetches the current list of heads.SCMSource.retrieve
(SCMSourceCriteria criteria, TaskListener listener) SPI: Fetches the current list of heads.Modifier and TypeMethodDescriptionSCMFileSystem.Builder.build
(SCMSource source, SCMHead head, SCMRevision rev) Given aSCMSource
, aSCMHead
and aSCMRevision
this method should try to build a correspondingSCMFileSystem
instance that reflects the content of the specifiedSCMHead
at the specifiedSCMRevision
.final SCM
Builds aSCM
instance for the specified head.abstract SCM
SCMSource.build
(SCMHead head, SCMRevision revision) Builds aSCM
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 anull
revision.int
protected SCMProbe
SCMSource.createProbe
(SCMHead head, SCMRevision revision) final SCMRevision
SCMSource.fetch
(SCMHead head, TaskListener listener) Gets the current head revision of the specified head.SCMSource.fetchActions
(SCMHead head, SCMHeadEvent event, TaskListener listener) Fetches any actions that should be persisted for objects related to the specified head.static <O extends SCMHeadObserver>
SCMHeadObserver.Filter<O>Creates an observer that filters a delegates observer to the specified headsprotected final SCMProbe
SCMSource.fromSCMFileSystem
(SCMHead head, SCMRevision revision) Helper method for subclasses that have implemented aSCMFileSystem.Builder
and want to use a simple non-cachingSCMProbe
based off of theSCMFileSystem
.final SCMProbe
SCMSource.newProbe
(SCMHead head, SCMRevision revision) void
SCMHeadObserver.AllFinished.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Any.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Collector.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Filter.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Named.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.None.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.abstract void
SCMHeadObserver.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.OneFinished.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Selector.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.void
SCMHeadObserver.Wrapped.observe
(SCMHead head, SCMRevision revision) Observes a head and current revision.static SCMFileSystem
Given aSCMSource
and aSCMHead
this method will try to retrieve a correspondingSCMFileSystem
instance that reflects the content of the specifiedSCMHead
.static SCMFileSystem
SCMFileSystem.of
(SCMSource source, SCMHead head, SCMRevision rev) Given aSCMSource
, aSCMHead
and aSCMRevision
this method will try to retrieve a correspondingSCMFileSystem
instance that reflects the content of the specifiedSCMHead
at the specifiedSCMRevision
.SCMSource.parentHeads
(SCMHead head, TaskListener listener) Looks up the immediate parent heads of the specified head within the specified source.SCMSource.parentRevisions
(SCMHead head, SCMRevision revision, TaskListener listener) Looks up the immediate parent revision(s) of the specified revision within the specified head.static SCMHead
SCMHeadMigration.readResolveSCMHead
(SCMSource source, SCMHead head) Perform a migration.protected SCMRevision
SCMSource.retrieve
(SCMHead head, TaskListener listener) SPI: Gets the current head revision of the specified head.SCMSource.retrieveActions
(SCMHead head, SCMHeadEvent event, TaskListener listener) static SCMHeadObserver.Selector
Creates an observer that selects the revision of a specific head. -
Uses of SCMHead in jenkins.scm.api.actions
-
Uses of SCMHead in jenkins.scm.api.mixin
Modifier and TypeClassDescriptionclass
ChangeRequestSCMRevision<H extends SCMHead & ChangeRequestSCMHead>
Recommended base class for theSCMRevision
of aChangeRequestSCMHead
. -
Uses of SCMHead in jenkins.scm.api.trait
Modifier and TypeInterfaceDescriptionstatic interface
SCMSourceRequest.LazyRevisionLambda<H extends SCMHead,
R extends SCMRevision, I> A lambda that will create theSCMRevision
instance for a specificSCMHead
using the intermediate value produced by aSCMSourceRequest.IntermediateLambda
.static interface
SCMSourceRequest.ProbeLambda<H extends SCMHead,
I> A lambda that will create aSCMSourceCriteria.Probe
(ideally aSCMProbe
but for legacy code migration we useSCMSourceCriteria.Probe
) for a specifiedSCMHead
and either aSCMRevision
or some other type created by aSCMSourceRequest.IntermediateLambda
.static interface
SCMSourceRequest.RevisionLambda<H extends SCMHead,
R extends SCMRevision> A lambda that will create theSCMRevision
instance for a specificSCMHead
.static interface
SCMSourceRequest.Witness<H extends SCMHead,
R extends SCMRevision> Callback lambda to track the results ofSCMSourceRequest.process(SCMHead, IntermediateLambda, ProbeLambda, LazyRevisionLambda, Witness[])
Modifier and TypeMethodDescriptionfinal <H extends SCMHead,
I, R extends SCMRevision>
booleanSCMSourceRequest.process
(H head, SCMSourceRequest.IntermediateLambda<I> intermediateFactory, SCMSourceRequest.ProbeLambda<H, I> probeFactory, SCMSourceRequest.LazyRevisionLambda<H, R, I> revisionFactory, SCMSourceRequest.Witness... witnesses) Processes a head in the context of the current request where an intermediary operation is required before theSCMRevision
can be instantiated.final <H extends SCMHead,
R extends SCMRevision>
booleanSCMSourceRequest.process
(H head, SCMSourceRequest.RevisionLambda<H, R> revisionFactory, SCMSourceRequest.ProbeLambda<H, R> probeFactory, SCMSourceRequest.Witness... witnesses) Processes a head in the context of the current request.final <H extends SCMHead,
R extends SCMRevision>
booleanSCMSourceRequest.process
(H head, R revision, SCMSourceRequest.ProbeLambda<H, R> probeFactory, SCMSourceRequest.Witness... witnesses) Processes a head in the context of the current request.Modifier and TypeMethodDescriptionfinal boolean
SCMHeadAuthority.isApplicableTo
(SCMHead head) Checks if this authority is relevant to the suppliedSCMHead
.boolean
SCMHeadAuthorityDescriptor.isApplicableToHead
(SCMHead head) Checks if thisSCMHeadAuthorityDescriptor
is applicable to the suppliedSCMHead
.abstract boolean
SCMHeadFilter.isExcluded
(SCMSourceRequest request, SCMHead head) Checks if the suppliedSCMHead
is excluded from the specifiedSCMSourceRequest
.abstract boolean
SCMHeadPrefilter.isExcluded
(SCMSource source, SCMHead head) final boolean
SCMSourceRequest.isExcluded
(SCMHead head) Tests if theSCMHead
is excluded from the request.final boolean
SCMHeadAuthority.isTrusted
(SCMSourceRequest request, SCMHead head) Checks if the suppliedSCMHead
is trusted in the context of the specifiedSCMSourceRequest
.final boolean
Tests if theSCMHead
is trusted.final B
Replace theSCMBuilder.head()
with a newSCMHead
.ModifierConstructorDescriptionSCMBuilder
(Class<S> clazz, SCMHead head, SCMRevision revision) Constructor. -
Uses of SCMHead in jenkins.scm.impl
Modifier and TypeMethodDescriptionNullSCMSource.build
(SCMHead head, SCMRevision revision) Builds aSCM
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 anull
revision.SingleSCMSource.build
(SCMHead head, SCMRevision revision) Builds aSCM
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 anull
revision.boolean
Checks if the supplied instance is a match for thisSCMCategory
.boolean
Checks if the supplied instance is a match for thisSCMCategory
.boolean
Checks if the supplied instance is a match for thisSCMCategory
.