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 usingLogStorage.nodeListener(org.jenkinsci.plugins.workflow.graph.FlowNode)
.
-
-
Field Summary
Fields Modifier and Type Field Description org.jenkinsci.plugins.workflow.graph.FlowNode
node
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedLargeText<? extends org.jenkinsci.plugins.workflow.graph.FlowNode>
getLogText()
static TaskListener
listenerFor(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.log.TaskListenerDecorator decorator)
Creates a sink to print output from a step.void
onLoad(org.jenkinsci.plugins.workflow.graph.FlowNode node)
void
writeLogTo(long offset, org.apache.commons.jelly.XMLOutput out)
Used fromconsole.jelly
to write annotated log to the given output.-
Methods inherited from class org.jenkinsci.plugins.workflow.actions.LogAction
getDisplayName, getIconFileName, getUrlName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
onLoad
public void onLoad(org.jenkinsci.plugins.workflow.graph.FlowNode node)
- Specified by:
onLoad
in interfaceorg.jenkinsci.plugins.workflow.actions.FlowNodeAction
-
getLogText
public AnnotatedLargeText<? extends org.jenkinsci.plugins.workflow.graph.FlowNode> getLogText()
- Specified by:
getLogText
in 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.jelly
to 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 useLogActionImpl
if 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:
IOException
InterruptedException
-
-