hudson.plugins.timestamper
Class TimestamperBuildWrapper

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by hudson.plugins.timestamper.TimestamperBuildWrapper
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>

public final class TimestamperBuildWrapper
extends hudson.tasks.BuildWrapper

Build wrapper that decorates the build's logger to insert a TimestampNote on each output line.

Author:
Steven G. Brown

Nested Class Summary
static class TimestamperBuildWrapper.DescriptorImpl
          Registers TimestamperBuildWrapper as a BuildWrapper.
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
TimestamperBuildWrapper()
          Create a new TimestamperBuildWrapper.
 
Method Summary
 java.io.OutputStream decorateLogger(hudson.model.AbstractBuild build, java.io.OutputStream logger)
          
 hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          
 
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, getProjectAction, getProjectActions, makeBuildVariables, setUp
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestamperBuildWrapper

@DataBoundConstructor
public TimestamperBuildWrapper()
Create a new TimestamperBuildWrapper.

Method Detail

setUp

public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
                                                   hudson.Launcher launcher,
                                                   hudson.model.BuildListener listener)
                                            throws java.io.IOException,
                                                   java.lang.InterruptedException

Overrides:
setUp in class hudson.tasks.BuildWrapper
Throws:
java.io.IOException
java.lang.InterruptedException

decorateLogger

public java.io.OutputStream decorateLogger(hudson.model.AbstractBuild build,
                                           java.io.OutputStream logger)

Overrides:
decorateLogger in class hudson.tasks.BuildWrapper


Copyright © 2010. All Rights Reserved.