@ExportedBean public class SCMRevisionAction extends InvisibleAction
Action
added to AbstractBuild
to remember
which revision is built in the given build.Constructor and Description |
---|
SCMRevisionAction(SCMRevision revision)
Deprecated.
|
SCMRevisionAction(SCMSource source,
SCMRevision revision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SCMRevision |
getRevision()
Gets the
SCMRevision . |
static SCMRevision |
getRevision(Actionable actionable)
Deprecated.
|
static SCMRevision |
getRevision(SCMSource source,
Actionable actionable)
|
String |
getSourceId()
Gets the
SCMSource.getId() that the revision was created for. |
getDisplayName, getIconFileName, getUrlName
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") @Deprecated public SCMRevisionAction(@NonNull SCMRevision revision)
SCMRevisionAction(SCMSource, SCMRevision)
revision
- the SCMRevision
.public SCMRevisionAction(@NonNull SCMSource source, @NonNull SCMRevision revision)
source
- the SCMSource
.revision
- the SCMRevision
.@Exported @NonNull public SCMRevision getRevision()
SCMRevision
.SCMRevision
.@CheckForNull public String getSourceId()
SCMSource.getId()
that the revision was created for.SCMSource.getId()
that the revision was created for or null
when legacy data@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") @CheckForNull public static SCMRevision getRevision(@NonNull Actionable actionable)
getRevision(SCMSource, Actionable)
SCMRevision
from the specified Actionable
.actionable
- Actionable
containing a possible SCMRevisionAction
.SCMRevision
.@CheckForNull public static SCMRevision getRevision(@NonNull SCMSource source, @NonNull Actionable actionable)
source
- the SCMSource
to get the revision for.actionable
- Actionable
containing a possible SCMRevisionAction
.SCMRevision
.Copyright © 2016–2022. All rights reserved.