public class CustomPythonBuilder extends hudson.tasks.Builder implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CustomPythonBuilder.DescriptorImpl
Descriptor for this builder
|
Modifier and Type | Field and Description |
---|---|
String |
command
The command to execute in the PYTHON environment
|
String |
home
Home directory for the VIRTUALENV
|
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
|
Constructor and Description |
---|
CustomPythonBuilder(String home,
String nature,
String command,
boolean ignoreExitCode)
Constructor using fields
|
Modifier and Type | Method and Description |
---|---|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getDescriptor, getRequiredMonitorService, prebuild
public final String home
public final String nature
public final String command
public final boolean ignoreExitCode
@DataBoundConstructor public CustomPythonBuilder(String home, String nature, String command, boolean ignoreExitCode)
home
- The home directory for VIRTUALENVnature
- The nature of the command: PYTHON, shell, X shellcommand
- The command to executeignoreExitCode
- Do not consider the build as a failure if any of the commands
exits with a non-zero exit codepublic boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
Copyright © 2004-2018. All Rights Reserved.