Class LogStorageAction
java.lang.Object
org.jenkinsci.plugins.workflow.actions.LogAction
org.jenkinsci.plugins.workflow.support.actions.LogStorageAction
- All Implemented Interfaces:
Action,ModelObject,org.jenkinsci.plugins.workflow.actions.FlowNodeAction,org.jenkinsci.plugins.workflow.actions.PersistentAction
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class LogStorageAction
extends org.jenkinsci.plugins.workflow.actions.LogAction
implements org.jenkinsci.plugins.workflow.actions.FlowNodeAction, org.jenkinsci.plugins.workflow.actions.PersistentAction
A marker for a node which had some log text using
LogStorage.nodeListener(org.jenkinsci.plugins.workflow.graph.FlowNode).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAnnotatedLargeText<? extends org.jenkinsci.plugins.workflow.graph.FlowNode> static TaskListenerlistenerFor(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.log.TaskListenerDecorator decorator) Creates a sink to print output from a step.voidonLoad(org.jenkinsci.plugins.workflow.graph.FlowNode node) voidwriteLogTo(long offset, org.apache.commons.jelly.XMLOutput out) Used fromconsole.jellyto write annotated log to the given output.Methods inherited from class org.jenkinsci.plugins.workflow.actions.LogAction
getDisplayName, getIconFileName, getUrlNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Field Details
-
node
public transient org.jenkinsci.plugins.workflow.graph.FlowNode node
-
-
Method Details
-
onLoad
public void onLoad(org.jenkinsci.plugins.workflow.graph.FlowNode node) - Specified by:
onLoadin interfaceorg.jenkinsci.plugins.workflow.actions.FlowNodeAction
-
getLogText
- Specified by:
getLogTextin classorg.jenkinsci.plugins.workflow.actions.LogAction
-
writeLogTo
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public void writeLogTo(long offset, org.apache.commons.jelly.XMLOutput out) throws IOException Used fromconsole.jellyto write annotated log to the given output.- Throws:
IOException
-
listenerFor
@NonNull public static TaskListener listenerFor(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode node, @CheckForNull org.jenkinsci.plugins.workflow.log.TaskListenerDecorator decorator) throws IOException, InterruptedException Creates a sink to print output from a step. Will useLogActionImplif necessary.- Parameters:
node- a node which wishes to print outputdecorator- an optional decorator to pass toTaskListenerDecorator.apply(hudson.model.TaskListener, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner, org.jenkinsci.plugins.workflow.log.TaskListenerDecorator)- Returns:
- a stream
- Throws:
IOExceptionInterruptedException
-