jenkins.plugins.shiningpanda.builders
Class BuildoutBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by jenkins.plugins.shiningpanda.builders.BuildoutBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep, Serializable

public class BuildoutBuilder
extends hudson.tasks.Builder
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class BuildoutBuilder.DescriptorImpl
          Descriptor for this builder
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String buildoutCfg
          Path to the buildout.cfg file
 String command
          The command to execute in the PYTHON environment
 boolean ignoreExitCode
          Do not consider the build as a failure if any of the commands exits with a non-zero exit code.
 String nature
          The nature of the command: PYTHON, shell, X shell
 String pythonName
          Name of the PYTHON to invoke
 boolean useDistribute
          Use Distribute instead of SETUPTOOLS
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
BuildoutBuilder(String pythonName, String buildoutCfg, boolean useDistribute, String nature, String command, boolean ignoreExitCode)
          Constructor using fields
 
Method Summary
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Field Detail

pythonName

public final String pythonName
Name of the PYTHON to invoke


buildoutCfg

public final String buildoutCfg
Path to the buildout.cfg file


useDistribute

public boolean useDistribute
Use Distribute instead of SETUPTOOLS


nature

public final String nature
The nature of the command: PYTHON, shell, X shell


command

public final String command
The command to execute in the PYTHON environment


ignoreExitCode

public final boolean ignoreExitCode
Do not consider the build as a failure if any of the commands exits with a non-zero exit code.

Constructor Detail

BuildoutBuilder

@DataBoundConstructor
public BuildoutBuilder(String pythonName,
                                            String buildoutCfg,
                                            boolean useDistribute,
                                            String nature,
                                            String command,
                                            boolean ignoreExitCode)
Constructor using fields

Parameters:
pythonName - The name of the PYTHON to use to create the VIRTUALENV that starts BUILDOUT
buildoutCfg - The BUILDOUT configuration file
useDistribute - Choose between SETUPTOOLS and DISTRIBUTE
nature - The nature of the command: PYTHON, shell, X shell
command - The command to execute
ignoreExitCode - Do not consider the build as a failure if any of the commands exits with a non-zero exit code
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException


Copyright © 2004-2012. All Rights Reserved.