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
    Modifier and Type
    Field
    Description
    org.jenkinsci.plugins.workflow.graph.FlowNode
     
  • Method Summary

    Modifier and Type
    Method
    Description
    AnnotatedLargeText<? extends org.jenkinsci.plugins.workflow.graph.FlowNode>
     
    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 from console.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
  • 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:
      onLoad in interface org.jenkinsci.plugins.workflow.actions.FlowNodeAction
    • getLogText

      public AnnotatedLargeText<? extends org.jenkinsci.plugins.workflow.graph.FlowNode> getLogText()
      Specified by:
      getLogText in class org.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 from console.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 use LogActionImpl if necessary.
      Parameters:
      node - a node which wishes to print output
      decorator - an optional decorator to pass to TaskListenerDecorator.apply(hudson.model.TaskListener, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner, org.jenkinsci.plugins.workflow.log.TaskListenerDecorator)
      Returns:
      a stream
      Throws:
      IOException
      InterruptedException