Package io.jenkins.plugins.python
Class PythonInstallation
java.lang.Object
hudson.tools.ToolInstallation
io.jenkins.plugins.python.PythonInstallation
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstallation>,EnvironmentSpecific<PythonInstallation>,NodeSpecific<PythonInstallation>,Serializable
public class PythonInstallation
extends ToolInstallation
implements NodeSpecific<PythonInstallation>, EnvironmentSpecific<PythonInstallation>
Tool installation representing a managed or pre-installed Python distribution on Jenkins agents.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionPythonInstallation(String name, String home, List<? extends ToolProperty<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvVars(EnvVars env) forEnvironment(EnvVars environment) forNode(Node node, TaskListener log) getExecutable(Launcher launcher) Resolves the python executable path on the given launcher/node.Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
PythonInstallation
@DataBoundConstructor public PythonInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Details
-
forNode
public PythonInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
forNodein interfaceNodeSpecific<PythonInstallation>- Throws:
IOExceptionInterruptedException
-
forEnvironment
- Specified by:
forEnvironmentin interfaceEnvironmentSpecific<PythonInstallation>
-
buildEnvVars
- Overrides:
buildEnvVarsin classToolInstallation
-
getExecutable
Resolves the python executable path on the given launcher/node.- Throws:
IOExceptionInterruptedException
-