hudson.plugins.m2extrasteps
Class M2ExtraStepsWrapper

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

public class M2ExtraStepsWrapper
extends hudson.tasks.BuildWrapper

Wraps a build with pre and post build steps. These steps can take any action. This is based on the release plugin, but is specifically intended to provide for additional actions to be run as part of an m2 project build.

Since:
1.0
Author:
Andrew Bayer

Nested Class Summary
static class M2ExtraStepsWrapper.DescriptorImpl
           
 
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
M2ExtraStepsWrapper(java.lang.String runIfResult)
           
 
Method Summary
 java.util.List<hudson.tasks.Builder> getPostBuildSteps()
           
 java.util.List<hudson.tasks.Builder> getPreBuildSteps()
           
 java.lang.String getRunIfResult()
           
 void setPostBuildSteps(java.util.List<hudson.tasks.Builder> postBuildSteps)
           
 void setPreBuildSteps(java.util.List<hudson.tasks.Builder> preBuildSteps)
           
 void setRunIfResult(java.lang.String runIfResult)
           
 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, getDescriptor, getProjectAction, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

M2ExtraStepsWrapper

@DataBoundConstructor
public M2ExtraStepsWrapper(java.lang.String runIfResult)
Method Detail

getPreBuildSteps

public java.util.List<hudson.tasks.Builder> getPreBuildSteps()
Returns:
Returns the preBuildSteps.

setPreBuildSteps

public void setPreBuildSteps(java.util.List<hudson.tasks.Builder> preBuildSteps)
Parameters:
preBuildSteps - The preBuildSteps to set.

getPostBuildSteps

public java.util.List<hudson.tasks.Builder> getPostBuildSteps()
Returns:
Returns the postBuildSteps.

setPostBuildSteps

public void setPostBuildSteps(java.util.List<hudson.tasks.Builder> postBuildSteps)
Parameters:
postBuildSteps - The postBuildSteps to set.

getRunIfResult

public java.lang.String getRunIfResult()
Returns:
Returns the runIfResult value.

setRunIfResult

public void setRunIfResult(java.lang.String runIfResult)
Parameters:
runIfResult - The runIfResult to set.

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


Copyright © 2009. All Rights Reserved.