T - type of the resultspublic abstract class BuildAction<T> extends Object implements SimpleBuildStep.LastBuildAction, RunAction2, Serializable
summary.jelly file.
This action also provides access to the detail views: these are rendered using a new view instance.| Modifier | Constructor and Description |
|---|---|
protected |
BuildAction(Run<?,?> owner,
T result)
Creates a new instance of
BuildAction. |
|
BuildAction(Run<?,?> owner,
T result,
boolean canSerialize)
Creates a new instance of
BuildAction. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract JobAction<? extends BuildAction<T>> |
createProjectAction() |
protected abstract AbstractXmlStream<T> |
createXmlStream() |
static <T extends BuildAction<?>> |
getBuildActionFromHistoryStartingFrom(Run<?,?> baseline,
Class<T> buildActionClass)
Returns a
BuildAction of the specified baseline build. |
protected abstract String |
getBuildResultBaseName() |
Run<?,?> |
getOwner() |
Collection<? extends Action> |
getProjectActions() |
T |
getResult()
Returns the repository statistics.
|
void |
onAttached(Run<?,?> r) |
void |
onLoad(Run<?,?> r) |
protected Object |
readResolve()
Called after de-serialization to improve the memory usage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, getIconFileName, getUrlNameprotected BuildAction(Run<?,?> owner, T result)
BuildAction.owner - the associated build that created the resultresult - the result to persist with this actionpublic BuildAction(Run<?,?> owner, T result, boolean canSerialize)
BuildAction.owner - the associated build that created the resultresult - the result to persist with this actioncanSerialize - determines whether the result should be persisted in the build folderprotected abstract AbstractXmlStream<T> createXmlStream()
public Run<?,?> getOwner()
public void onAttached(Run<?,?> r)
onAttached in interface RunAction2public void onLoad(Run<?,?> r)
onLoad in interface RunAction2protected Object readResolve()
public Collection<? extends Action> getProjectActions()
getProjectActions in interface SimpleBuildStep.LastBuildActionprotected abstract JobAction<? extends BuildAction<T>> createProjectAction()
public T getResult()
WeakReference. So if the current instance has been destroyed by the garbage collector then a new instance will
be automatically created by reading the persisted XML data from Jenkins build folder.protected abstract String getBuildResultBaseName()
public static <T extends BuildAction<?>> Optional<T> getBuildActionFromHistoryStartingFrom(@CheckForNull Run<?,?> baseline, Class<T> buildActionClass)
BuildAction of the specified baseline build. If there is no such action for the baseline then
the previous build is inspected, and so on. If no previous build contains a BuildAction then an empty
result is returned.T - type of the resultsbaseline - the baseline to start the search withbuildActionClass - the type of the action to findBuildAction, or an empty result if there is no such actionCopyright © 2016–2021. All rights reserved.