public class PythonBuilder extends hudson.tasks.Builder implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PythonBuilder.DescriptorImpl
Descriptor for this builder
|
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
PythonBuilder(String pythonName,
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 pythonName
public final String nature
public final String command
public final boolean ignoreExitCode
@DataBoundConstructor public PythonBuilder(String pythonName, String nature, String command, boolean ignoreExitCode)
pythonName
- The name of the PYTHONnature
- The nature of the command: PYTHON, shell, X shellcommand
- The command to execute in PYTHON environmentignoreExitCode
- 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.