public class PythonInstallation extends hudson.tools.ToolInstallation implements hudson.model.EnvironmentSpecific<PythonInstallation>, hudson.slaves.NodeSpecific<PythonInstallation>
Modifier and Type | Class and Description |
---|---|
static class |
PythonInstallation.DescriptorImpl
Installation descriptor
|
Constructor and Description |
---|
PythonInstallation(String name,
String home,
List<? extends hudson.tools.ToolProperty<?>> properties)
Constructor using fields.
|
Modifier and Type | Method and Description |
---|---|
PythonInstallation |
forBuild(hudson.model.TaskListener listener,
hudson.EnvVars environment)
Get the installation for the provided build.
|
PythonInstallation |
forEnvironment(hudson.EnvVars environment)
Get the installation for the environment.
|
PythonInstallation |
forNode(hudson.model.Node node,
hudson.model.TaskListener listener)
Get the installation for the provided node.
|
static PythonInstallation |
fromName(String name)
Get the installation from its name.
|
static boolean |
isEmpty()
Check if at least one installation is defined.
|
static PythonInstallation[] |
list()
Get the installations.
|
public PythonInstallation forEnvironment(hudson.EnvVars environment)
forEnvironment
in interface hudson.model.EnvironmentSpecific<PythonInstallation>
environment
- The environmentpublic PythonInstallation forNode(hudson.model.Node node, hudson.model.TaskListener listener) throws IOException, InterruptedException
forNode
in interface hudson.slaves.NodeSpecific<PythonInstallation>
node
- The nodelistener
- The listenerIOException
InterruptedException
public PythonInstallation forBuild(hudson.model.TaskListener listener, hudson.EnvVars environment) throws IOException, InterruptedException
listener
- The build listenerenvironment
- The environmentIOException
InterruptedException
public static boolean isEmpty()
public static PythonInstallation[] list()
public static PythonInstallation fromName(String name)
name
- The name of the installationCopyright © 2004-2018. All Rights Reserved.