Uses of Class
jenkins.scm.api.SCMRevision
-
Packages that use SCMRevision Package Description jenkins.scm.api The public API contract of the SCM API plugin.jenkins.scm.api.mixin The mix-in interfaces used bySCMHead
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.jenkins.scm.api.trait An API/SPI to allow the sharing of common traits between differentSCMSource
andSCMNavigator
implementations.jenkins.scm.impl The common implementations of classes in the public API. -
-
Uses of SCMRevision in jenkins.scm.api
Classes in jenkins.scm.api with type parameters of type SCMRevision Modifier and Type Class Description class
SCMHeadMigration<S extends SCMSource,H extends SCMHead,R extends SCMRevision>
Methods in jenkins.scm.api that return SCMRevision Modifier and Type Method Description SCMRevision
SCMSource. fetch(String thingName, TaskListener listener)
Deprecated.rather callSCMSource.fetch(String, TaskListener, Item)
SCMRevision
SCMSource. fetch(String thingName, TaskListener listener, Item context)
Looks up a specific thingName based on some SCM-specific set of permissible syntaxes.SCMRevision
SCMSource. fetch(SCMHead head, TaskListener listener)
Gets the current head revision of the specified head.SCMRevision
SCMFileSystem. getRevision()
If this inspector is looking at the specific commit, returns that revision.SCMRevision
SCMHeadObserver.Any. getRevision()
Returns the result.SCMRevision
SCMRevisionAction. getRevision()
Gets theSCMRevision
.static SCMRevision
SCMRevisionAction. getRevision(Actionable actionable)
Deprecated.static SCMRevision
SCMRevisionAction. getRevision(SCMSource source, Actionable actionable)
SCMRevision
SCMSource. getTrustedRevision(SCMRevision revision, TaskListener listener)
Enables a source to request that an alternative revision be used to obtain security-sensitive build instructions.SCMRevision
SCMHeadMigration. migrate(S source, R revision)
Perform a migration.static SCMRevision
SCMHeadMigration. readResolveSCMRevision(SCMSource source, SCMRevision revision)
Perform a migration.SCMRevision
SCMHeadObserver.Any. result()
Returns the result.SCMRevision
SCMHeadObserver.Named. result()
Returns the result.SCMRevision
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.Methods in jenkins.scm.api that return types with arguments of type SCMRevision Modifier and Type Method Description abstract Map<SCMHead,SCMRevision>
SCMHeadEvent. heads(SCMSource source)
Map<SCMHead,SCMRevision>
SCMSource. parentHeads(SCMHead head, TaskListener listener)
Looks up the immediate parent heads of the specified head within the specified source.Set<SCMRevision>
SCMSource. parentRevisions(SCMHead head, SCMRevision revision, TaskListener listener)
Looks up the immediate parent revision(s) of the specified revision within the specified head.Map<SCMHead,SCMRevision>
SCMHeadObserver.Collector. result()
Returns the collected results.Methods in jenkins.scm.api with parameters of type SCMRevision Modifier and Type Method Description SCMFileSystem
SCMFileSystem.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
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
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)
List<Action>
SCMSource. fetchActions(SCMRevision revision, SCMHeadEvent event, TaskListener listener)
Fetches any actions that should be persisted for objects related to the specified revision.protected 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
.SCMRevision
SCMSource. getTrustedRevision(SCMRevision revision, TaskListener listener)
Enables a source to request that an alternative revision be used to obtain security-sensitive build instructions.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
.Set<SCMRevision>
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.protected List<Action>
SCMSource. retrieveActions(SCMRevision revision, SCMHeadEvent event, TaskListener listener)
Constructors in jenkins.scm.api with parameters of type SCMRevision Constructor Description SCMFileSystem(SCMRevision rev)
Constructor.SCMRevisionAction(SCMRevision revision)
Deprecated.SCMRevisionAction(SCMSource source, SCMRevision revision)
Constructor. -
Uses of SCMRevision in jenkins.scm.api.mixin
Subclasses of SCMRevision in jenkins.scm.api.mixin Modifier and Type Class Description class
ChangeRequestSCMRevision<H extends SCMHead & ChangeRequestSCMHead>
Recommended base class for theSCMRevision
of aChangeRequestSCMHead
.Methods in jenkins.scm.api.mixin that return SCMRevision Modifier and Type Method Description SCMRevision
ChangeRequestSCMRevision. getTarget()
Returns the revision of theChangeRequestSCMHead.getTarget()
that thisChangeRequestSCMHead
is associated with.Constructors in jenkins.scm.api.mixin with parameters of type SCMRevision Constructor Description ChangeRequestSCMRevision(H head, SCMRevision target)
Constructor. -
Uses of SCMRevision in jenkins.scm.api.trait
Classes in jenkins.scm.api.trait with type parameters of type SCMRevision Modifier and Type Class Description class
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[])
Methods in jenkins.scm.api.trait with type parameters of type SCMRevision Modifier and Type Method Description <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.<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.<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.Methods in jenkins.scm.api.trait that return SCMRevision Modifier and Type Method Description SCMRevision
SCMBuilder. revision()
Methods in jenkins.scm.api.trait with parameters of type SCMRevision Modifier and Type Method Description 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
.boolean
SCMHeadAuthority. isTrusted(SCMSourceRequest request, SCMRevision revision)
Checks if the suppliedSCMRevision
is trusted in the context of the specifiedSCMSourceRequest
.B
SCMBuilder. withRevision(SCMRevision revision)
Replace theSCMBuilder.revision()
with a newSCMRevision
Method parameters in jenkins.scm.api.trait with type arguments of type SCMRevision Modifier and Type Method Description boolean
SCMHeadAuthorityDescriptor. isApplicableToRevision(Class<? extends SCMRevision> revisionClass)
Checks if thisSCMHeadAuthorityDescriptor
is applicable to the supplied type ofSCMRevision
.Constructors in jenkins.scm.api.trait with parameters of type SCMRevision Constructor Description SCMBuilder(Class<S> clazz, SCMHead head, SCMRevision revision)
Constructor. -
Uses of SCMRevision in jenkins.scm.impl
Methods in jenkins.scm.impl with parameters of type SCMRevision Modifier and Type Method Description SCM
NullSCMSource. 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.SCM
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.
-