Class TaskListenerDecorator

java.lang.Object
org.jenkinsci.plugins.workflow.log.TaskListenerDecorator
All Implemented Interfaces:
Serializable

public abstract class TaskListenerDecorator extends Object implements Serializable
A way of decorating output from a TaskListener. Similar to ConsoleLogFilter but better matched to Pipeline logging.

May be passed to a BodyInvoker in lieu of BodyInvoker.mergeConsoleLogFilters(hudson.console.ConsoleLogFilter, hudson.console.ConsoleLogFilter), using merge(org.jenkinsci.plugins.workflow.log.TaskListenerDecorator, org.jenkinsci.plugins.workflow.log.TaskListenerDecorator) to pick up any earlier decorator in StepContext.get(java.lang.Class<T>).

Expected to be serializable either locally or over Remoting, so an implementation of decorate(java.io.OutputStream) cannot assume that JenkinsJVM.isJenkinsJVM(). Any controller-side configuration should thus be saved into instance fields when the decorator is constructed.

See Also: