org.hudsonci.plugins.scripting.wrapper
Class ScriptBuildWrapper

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by org.hudsonci.plugins.scripting.wrapper.ScriptBuildWrapper
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>

public class ScriptBuildWrapper
extends hudson.tasks.BuildWrapper

Script BuildWrapper.

Author:
Jason Dillon

Nested Class Summary
static class ScriptBuildWrapper.DescriptorImpl
           
static class ScriptBuildWrapper.Mode
           
 
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
ScriptBuildWrapper(String source, String mode)
           
 
Method Summary
 hudson.Launcher decorateLauncher(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 OutputStream decorateLogger(hudson.model.AbstractBuild build, OutputStream logger)
           
protected  void finalize()
           
 ScriptBuildWrapper.Mode getMode()
           
 String getSource()
           
 void makeBuildVariables(hudson.model.AbstractBuild build, Map<String,String> variables)
           
 hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, getProjectActions, makeSensitiveBuildVariables, setUp
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptBuildWrapper

@DataBoundConstructor
public ScriptBuildWrapper(String source,
                                               String mode)
Method Detail

getSource

@JellyAccessible
public String getSource()

getMode

@JellyAccessible
public ScriptBuildWrapper.Mode getMode()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

setUp

public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
                                                   hudson.Launcher launcher,
                                                   hudson.model.BuildListener listener)
                                            throws IOException,
                                                   InterruptedException
Overrides:
setUp in class hudson.tasks.BuildWrapper
Throws:
IOException
InterruptedException

decorateLauncher

public hudson.Launcher decorateLauncher(hudson.model.AbstractBuild build,
                                        hudson.Launcher launcher,
                                        hudson.model.BuildListener listener)
                                 throws IOException,
                                        InterruptedException,
                                        hudson.model.Run.RunnerAbortedException
Overrides:
decorateLauncher in class hudson.tasks.BuildWrapper
Throws:
IOException
InterruptedException
hudson.model.Run.RunnerAbortedException

decorateLogger

public OutputStream decorateLogger(hudson.model.AbstractBuild build,
                                   OutputStream logger)
                            throws IOException,
                                   InterruptedException,
                                   hudson.model.Run.RunnerAbortedException
Overrides:
decorateLogger in class hudson.tasks.BuildWrapper
Throws:
IOException
InterruptedException
hudson.model.Run.RunnerAbortedException

makeBuildVariables

public void makeBuildVariables(hudson.model.AbstractBuild build,
                               Map<String,String> variables)
Overrides:
makeBuildVariables in class hudson.tasks.BuildWrapper


Copyright © 2004-2012 Hudson. All Rights Reserved.