Uses of Class
jenkins.scm.api.SCMRevision
Package
Description
The public API contract of the SCM API plugin.
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 SCMRevision in jenkins.scm.api
Modifier and TypeClassDescriptionclass
SCMHeadMigration<S extends SCMSource,
H extends SCMHead, R extends SCMRevision> Modifier and TypeMethodDescriptionfinal SCMRevision
SCMSource.fetch
(String thingName, TaskListener listener) Deprecated.final SCMRevision
SCMSource.fetch
(String thingName, TaskListener listener, Item context) Looks up a specific thingName based on some SCM-specific set of permissible syntaxes.final SCMRevision
SCMSource.fetch
(SCMHead head, TaskListener listener) Gets the current head revision of the specified head.SCMFileSystem.getRevision()
If this inspector is looking at the specific commit, returns that revision.SCMHeadObserver.Any.getRevision()
Returns the result.SCMRevisionAction.getRevision()
Gets theSCMRevision
.static SCMRevision
SCMRevisionAction.getRevision
(Actionable actionable) Deprecated.static SCMRevision
SCMRevisionAction.getRevision
(SCMSource source, Actionable actionable) SCMSource.getTrustedRevision
(SCMRevision revision, TaskListener listener) Enables a source to request that an alternative revision be used to obtain security-sensitive build instructions.Perform a migration.static SCMRevision
SCMHeadMigration.readResolveSCMRevision
(SCMSource source, SCMRevision revision) Perform a migration.SCMHeadObserver.Any.result()
Returns the result.SCMHeadObserver.Named.result()
Returns the result.SCMHeadObserver.Selector.result()
Returns the result.protected SCMRevision
SCMSource.retrieve
(String thingName, TaskListener listener) Deprecated.rather overrideSCMSource.retrieve(String, TaskListener, Item)
protected SCMRevision
SCMSource.retrieve
(String thingName, TaskListener listener, Item context) SPI: Looks up a specific revision based on some SCM-specific set of permissible syntaxes.protected SCMRevision
SCMSource.retrieve
(SCMHead head, TaskListener listener) SPI: Gets the current head revision of the specified head.Modifier and TypeMethodDescriptionabstract Map<SCMHead,
SCMRevision> 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.SCMHeadObserver.Collector.result()
Returns the collected results.Modifier and TypeMethodDescriptionSCMFileSystem.Builder.build
(Item owner, SCM scm, SCMRevision rev) Given aSCM
this should try to build a correspondingSCMFileSystem
instance that reflects the content at the specifiedSCMRevision
.SCMFileSystem.Builder.build
(Item owner, SCM scm, SCMRevision rev, Run<?, ?> _build) Given aSCM
this should try to build a correspondingSCMFileSystem
instance that reflects the content at the specifiedSCMRevision
.SCMFileSystem.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
.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.boolean
SCMFileSystem.changesSince
(SCMRevision revision, OutputStream changeLogStream) Writes the changes between the specified revision andSCMFileSystem.getRevision()
in the format compatible with theSCM
from thisSCMFileSystem.of(Item, SCM)
to the suppliedOutputStream
.protected SCMProbe
SCMSource.createProbe
(SCMHead head, SCMRevision revision) SCMSource.fetchActions
(SCMRevision revision, SCMHeadEvent event, TaskListener listener) Fetches any actions that should be persisted for objects related to the specified revision.protected 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
.SCMSource.getTrustedRevision
(SCMRevision revision, TaskListener listener) Enables a source to request that an alternative revision be used to obtain security-sensitive build instructions.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
SCMFileSystem.of
(Item owner, SCM scm, SCMRevision rev) Given aSCM
this method will try to retrieve a correspondingSCMFileSystem
instance that reflects the content at the specifiedSCMRevision
.static SCMFileSystem
SCMFileSystem.of
(Item owner, SCM scm, SCMRevision rev, Run<?, ?> build) Given aSCM
this method will try to retrieve a correspondingSCMFileSystem
instance that reflects the content at the specifiedSCMRevision
.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.parentRevisions
(SCMHead head, SCMRevision revision, TaskListener listener) Looks up the immediate parent revision(s) of the specified revision within the specified head.static SCMRevision
SCMHeadMigration.readResolveSCMRevision
(SCMSource source, SCMRevision revision) Perform a migration.SCMSource.retrieveActions
(SCMRevision revision, SCMHeadEvent event, TaskListener listener) ModifierConstructorDescriptionprotected
SCMFileSystem
(SCMRevision rev) Constructor.SCMRevisionAction
(SCMRevision revision) Deprecated.SCMRevisionAction
(SCMSource source, SCMRevision revision) Constructor. -
Uses of SCMRevision in jenkins.scm.api.mixin
Modifier and TypeClassDescriptionclass
ChangeRequestSCMRevision<H extends SCMHead & ChangeRequestSCMHead>
Recommended base class for theSCMRevision
of aChangeRequestSCMHead
.Modifier and TypeMethodDescriptionfinal SCMRevision
ChangeRequestSCMRevision.getTarget()
Returns the revision of theChangeRequestSCMHead.getTarget()
that thisChangeRequestSCMHead
is associated with.ModifierConstructorDescriptionprotected
ChangeRequestSCMRevision
(H head, SCMRevision target) Constructor. -
Uses of SCMRevision in jenkins.scm.api.trait
Modifier and TypeClassDescriptionclass
SCMHeadAuthority<S extends SCMSourceRequest,
H extends SCMHeadMixin, R extends SCMRevision> Abstraction to allow pluggable definitions of trust forSCMHead
andSCMRevision
instances in the context of a specificSCMSourceRequest
.static 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.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
(SCMRevision revision) Checks if this authority is relevant to the suppliedSCMRevision
.boolean
SCMHeadAuthorityDescriptor.isApplicableToRevision
(SCMRevision revision) Checks if thisSCMHeadAuthorityDescriptor
is applicable to the suppliedSCMRevision
.final boolean
SCMHeadAuthority.isTrusted
(SCMSourceRequest request, SCMRevision revision) Checks if the suppliedSCMRevision
is trusted in the context of the specifiedSCMSourceRequest
.final B
SCMBuilder.withRevision
(SCMRevision revision) Replace theSCMBuilder.revision()
with a newSCMRevision
Modifier and TypeMethodDescriptionboolean
SCMHeadAuthorityDescriptor.isApplicableToRevision
(Class<? extends SCMRevision> revisionClass) Checks if thisSCMHeadAuthorityDescriptor
is applicable to the supplied type ofSCMRevision
.ModifierConstructorDescriptionSCMBuilder
(Class<S> clazz, SCMHead head, SCMRevision revision) Constructor. -
Uses of SCMRevision 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.
SCMSource.fetch(String, TaskListener, Item)