Uses of Class
jenkins.scm.api.SCMRevision
Packages that use 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
Classes in jenkins.scm.api with type parameters of type SCMRevisionModifier and TypeClassDescriptionclassSCMHeadMigration<S extends SCMSource,H extends SCMHead, R extends SCMRevision> Methods in jenkins.scm.api that return SCMRevisionModifier and TypeMethodDescriptionfinal SCMRevisionSCMSource.fetch(String thingName, TaskListener listener) Deprecated.final SCMRevisionSCMSource.fetch(String thingName, TaskListener listener, Item context) Looks up a specific thingName based on some SCM-specific set of permissible syntaxes.final SCMRevisionSCMSource.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 SCMRevisionSCMRevisionAction.getRevision(Actionable actionable) Deprecated.static SCMRevisionSCMRevisionAction.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 SCMRevisionSCMHeadMigration.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 SCMRevisionSCMSource.retrieve(String thingName, TaskListener listener) Deprecated.rather overrideSCMSource.retrieve(String, TaskListener, Item)protected SCMRevisionSCMSource.retrieve(String thingName, TaskListener listener, Item context) SPI: Looks up a specific revision based on some SCM-specific set of permissible syntaxes.protected SCMRevisionSCMSource.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 SCMRevisionModifier 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.Methods in jenkins.scm.api with parameters of type SCMRevisionModifier and TypeMethodDescriptionSCMFileSystem.Builder.build(Item owner, SCM scm, SCMRevision rev) Given aSCMthis should try to build a correspondingSCMFileSysteminstance that reflects the content at the specifiedSCMRevision.SCMFileSystem.Builder.build(Item owner, SCM scm, SCMRevision rev, Run<?, ?> _build) Given aSCMthis should try to build a correspondingSCMFileSysteminstance that reflects the content at the specifiedSCMRevision.SCMFileSystem.Builder.build(SCMSource source, SCMHead head, SCMRevision rev) Given aSCMSource, aSCMHeadand aSCMRevisionthis method should try to build a correspondingSCMFileSysteminstance that reflects the content of the specifiedSCMHeadat the specifiedSCMRevision.abstract SCMSCMSource.build(SCMHead head, SCMRevision revision) Builds aSCMinstance 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 anullrevision.booleanSCMFileSystem.changesSince(SCMRevision revision, OutputStream changeLogStream) Writes the changes between the specified revision andSCMFileSystem.getRevision()in the format compatible with theSCMfrom thisSCMFileSystem.of(Item, SCM)to the suppliedOutputStream.protected SCMProbeSCMSource.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 SCMProbeSCMSource.fromSCMFileSystem(SCMHead head, SCMRevision revision) Helper method for subclasses that have implemented aSCMFileSystem.Builderand want to use a simple non-cachingSCMProbebased 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 SCMProbeSCMSource.newProbe(SCMHead head, SCMRevision revision) voidSCMHeadObserver.AllFinished.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Any.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Collector.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Filter.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Named.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.None.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.abstract voidSCMHeadObserver.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.OneFinished.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Selector.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.voidSCMHeadObserver.Wrapped.observe(SCMHead head, SCMRevision revision) Observes a head and current revision.static SCMFileSystemSCMFileSystem.of(Item owner, SCM scm, SCMRevision rev) Given aSCMthis method will try to retrieve a correspondingSCMFileSysteminstance that reflects the content at the specifiedSCMRevision.static SCMFileSystemSCMFileSystem.of(Item owner, SCM scm, SCMRevision rev, Run<?, ?> build) Given aSCMthis method will try to retrieve a correspondingSCMFileSysteminstance that reflects the content at the specifiedSCMRevision.static SCMFileSystemSCMFileSystem.of(SCMSource source, SCMHead head, SCMRevision rev) Given aSCMSource, aSCMHeadand aSCMRevisionthis method will try to retrieve a correspondingSCMFileSysteminstance that reflects the content of the specifiedSCMHeadat 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 SCMRevisionSCMHeadMigration.readResolveSCMRevision(SCMSource source, SCMRevision revision) Perform a migration.SCMSource.retrieveActions(SCMRevision revision, SCMHeadEvent event, TaskListener listener) Constructors in jenkins.scm.api with parameters of type SCMRevisionModifierConstructorDescriptionprotectedSCMFileSystem(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.mixinModifier and TypeClassDescriptionclassChangeRequestSCMRevision<H extends SCMHead & ChangeRequestSCMHead>Recommended base class for theSCMRevisionof aChangeRequestSCMHead.Methods in jenkins.scm.api.mixin that return SCMRevisionModifier and TypeMethodDescriptionfinal SCMRevisionChangeRequestSCMRevision.getTarget()Returns the revision of theChangeRequestSCMHead.getTarget()that thisChangeRequestSCMHeadis associated with.Constructors in jenkins.scm.api.mixin with parameters of type SCMRevisionModifierConstructorDescriptionprotectedChangeRequestSCMRevision(H head, SCMRevision target) Constructor. -
Uses of SCMRevision in jenkins.scm.api.trait
Classes in jenkins.scm.api.trait with type parameters of type SCMRevisionModifier and TypeClassDescriptionclassSCMHeadAuthority<S extends SCMSourceRequest,H extends SCMHeadMixin, R extends SCMRevision> Abstraction to allow pluggable definitions of trust forSCMHeadandSCMRevisioninstances in the context of a specificSCMSourceRequest.static interfaceSCMSourceRequest.LazyRevisionLambda<H extends SCMHead,R extends SCMRevision, I> A lambda that will create theSCMRevisioninstance for a specificSCMHeadusing the intermediate value produced by aSCMSourceRequest.IntermediateLambda.static interfaceSCMSourceRequest.RevisionLambda<H extends SCMHead,R extends SCMRevision> A lambda that will create theSCMRevisioninstance for a specificSCMHead.static interfaceSCMSourceRequest.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 SCMRevisionModifier 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 theSCMRevisioncan 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.Methods in jenkins.scm.api.trait that return SCMRevisionMethods in jenkins.scm.api.trait with parameters of type SCMRevisionModifier and TypeMethodDescriptionfinal booleanSCMHeadAuthority.isApplicableTo(SCMRevision revision) Checks if this authority is relevant to the suppliedSCMRevision.booleanSCMHeadAuthorityDescriptor.isApplicableToRevision(SCMRevision revision) Checks if thisSCMHeadAuthorityDescriptoris applicable to the suppliedSCMRevision.final booleanSCMHeadAuthority.isTrusted(SCMSourceRequest request, SCMRevision revision) Checks if the suppliedSCMRevisionis trusted in the context of the specifiedSCMSourceRequest.final BSCMBuilder.withRevision(SCMRevision revision) Replace theSCMBuilder.revision()with a newSCMRevisionMethod parameters in jenkins.scm.api.trait with type arguments of type SCMRevisionModifier and TypeMethodDescriptionbooleanSCMHeadAuthorityDescriptor.isApplicableToRevision(Class<? extends SCMRevision> revisionClass) Checks if thisSCMHeadAuthorityDescriptoris applicable to the supplied type ofSCMRevision.Constructors in jenkins.scm.api.trait with parameters of type SCMRevisionModifierConstructorDescriptionSCMBuilder(Class<S> clazz, SCMHead head, SCMRevision revision) Constructor. -
Uses of SCMRevision in jenkins.scm.impl
Methods in jenkins.scm.impl with parameters of type SCMRevisionModifier and TypeMethodDescriptionNullSCMSource.build(SCMHead head, SCMRevision revision) Builds aSCMinstance 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 anullrevision.SingleSCMSource.build(SCMHead head, SCMRevision revision) Builds aSCMinstance 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 anullrevision.
SCMSource.fetch(String, TaskListener, Item)