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 SummaryConstructorsConstructorDescriptionSCMRevisionAction(SCMRevision revision) Deprecated.SCMRevisionAction(SCMSource source, SCMRevision revision) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionGets theSCMRevision.static SCMRevisiongetRevision(Actionable actionable) Deprecated.static SCMRevisiongetRevision(SCMSource source, Actionable actionable) Gets theSCMSource.getId()that the revision was created for.Methods inherited from class hudson.model.InvisibleActiongetDisplayName, 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- the- SCMRevision.
 
- 
SCMRevisionActionConstructor.- Parameters:
- source- the- SCMSource.
- revision- the- SCMRevision.
 
 
- 
- 
Method Details- 
getRevisionGets theSCMRevision.- Returns:
- the SCMRevision.
 
- 
getSourceIdGets theSCMSource.getId()that the revision was created for.- Returns:
- the SCMSource.getId()that the revision was created for ornullwhen 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 theSCMRevisionfrom the specifiedActionable.- Parameters:
- actionable-- Actionablecontaining a possible- SCMRevisionAction.
- Returns:
- the SCMRevision.
 
- 
getRevision@CheckForNull public static SCMRevision getRevision(@NonNull SCMSource source, @NonNull Actionable actionable) - Parameters:
- source- the- SCMSourceto get the revision for.
- actionable-- Actionablecontaining a possible- SCMRevisionAction.
- Returns:
- the SCMRevision.
 
 
- 
SCMRevisionAction(SCMSource, SCMRevision)