public class VirtualenvBuilder extends hudson.tasks.Builder implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
VirtualenvBuilder.DescriptorImpl
Descriptor for this builder
|
Modifier and Type | Field and Description |
---|---|
boolean |
clear
Clear out the non-root install and start from scratch
|
String |
command
The command to execute in the PYTHON environment
|
String |
home
Home folder for this 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
|
String |
pythonName
Name of the PYTHON to invoke
|
boolean |
systemSitePackages
Give access to the global site-packages
|
Boolean |
useDistribute
Deprecated.
since 0.21
|
Constructor and Description |
---|
VirtualenvBuilder(String pythonName,
String home,
boolean clear,
boolean systemSitePackages,
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 home
public boolean clear
@Deprecated public transient Boolean useDistribute
public boolean systemSitePackages
public final String nature
public final String command
public final boolean ignoreExitCode
@DataBoundConstructor public VirtualenvBuilder(String pythonName, String home, boolean clear, boolean systemSitePackages, String nature, String command, boolean ignoreExitCode)
pythonName
- The name of the PYTHON to use to create the VIRTUALENVhome
- The home folder for this VIRTUALENVclear
- Must the VIRTUALENV be cleared on each build?systemSitePackages
- Give access to the global site-packages directory to the
virtual environmentnature
- 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.