Package jenkins.scm.api
Class SCMRevisionAction
java.lang.Object
hudson.model.InvisibleAction
jenkins.scm.api.SCMRevisionAction
- All Implemented Interfaces:
Action
,ModelObject
Action
added to AbstractBuild
to remember
which revision is built in the given build.-
Constructor Summary
ConstructorDescriptionSCMRevisionAction
(SCMRevision revision) Deprecated.SCMRevisionAction
(SCMSource source, SCMRevision revision) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets theSCMRevision
.static SCMRevision
getRevision
(Actionable actionable) Deprecated.static SCMRevision
getRevision
(SCMSource source, Actionable actionable) Gets theSCMSource.getId()
that the revision was created for.Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
SCMRevisionAction
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") @Deprecated public SCMRevisionAction(@NonNull SCMRevision revision) Deprecated.Constructor.- Parameters:
revision
- theSCMRevision
.
-
SCMRevisionAction
Constructor.- Parameters:
source
- theSCMSource
.revision
- theSCMRevision
.
-
-
Method Details
-
getRevision
Gets theSCMRevision
.- Returns:
- the
SCMRevision
.
-
getSourceId
Gets theSCMSource.getId()
that the revision was created for.- Returns:
- the
SCMSource.getId()
that the revision was created for ornull
when legacy data - Since:
- 2.2.0
-
getRevision
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") @CheckForNull public static SCMRevision getRevision(@NonNull Actionable actionable) Deprecated.Gets theSCMRevision
from the specifiedActionable
.- Parameters:
actionable
-Actionable
containing a possibleSCMRevisionAction
.- Returns:
- the
SCMRevision
.
-
getRevision
@CheckForNull public static SCMRevision getRevision(@NonNull SCMSource source, @NonNull Actionable actionable) - Parameters:
source
- theSCMSource
to get the revision for.actionable
-Actionable
containing a possibleSCMRevisionAction
.- Returns:
- the
SCMRevision
.
-
SCMRevisionAction(SCMSource, SCMRevision)