public class BuilderUtil extends Object
Constructor and Description |
---|
BuilderUtil() |
Modifier and Type | Method and Description |
---|---|
static hudson.EnvVars |
getEnvironment(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Get the consolidated environment for the provided build.
|
static PythonInstallation |
getInstallation(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
hudson.EnvVars environment,
String name)
Get the PYTHON installation.
|
static Python |
getInterpreter(hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment)
Get the first available interpreter on the executor.
|
static Python |
getInterpreter(hudson.Launcher launcher,
hudson.model.BuildListener listener,
String home)
Get an interpreter.
|
static List<Python> |
getInterpreters(hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.EnvVars environment)
Get the list of the valid interpreter on an executor.
|
static Virtualenv |
getVirtualenv(hudson.model.BuildListener listener,
hudson.FilePath home)
Get a VIRTUALENV from its home folder.
|
static boolean |
launch(hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath pwd,
hudson.EnvVars environment,
Python interpreter,
String nature,
String command,
boolean ignoreExitCode)
Launch a command.
|
public static hudson.EnvVars getEnvironment(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener) throws IOException, InterruptedException
build
- The buildlistener
- The build listenerIOException
InterruptedException
public static PythonInstallation getInstallation(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, hudson.EnvVars environment, String name) throws IOException, InterruptedException
build
- The buildlistener
- The listenerenvironment
- The environmentname
- The nameIOException
InterruptedException
public static Python getInterpreter(hudson.Launcher launcher, hudson.model.BuildListener listener, String home) throws IOException, InterruptedException
launcher
- The launcherlistener
- The listenerhome
- The home of the interpreterIOException
InterruptedException
public static Virtualenv getVirtualenv(hudson.model.BuildListener listener, hudson.FilePath home) throws IOException, InterruptedException
listener
- The listenerhome
- The home folderIOException
InterruptedException
public static boolean launch(hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.FilePath pwd, hudson.EnvVars environment, Python interpreter, String nature, String command, boolean ignoreExitCode) throws IOException, InterruptedException
launcher
- The launcherlistener
- The build listenerpwd
- The working directoryenvironment
- The environmentinterpreter
- The interpreternature
- The nature of the command: PYTHON, shell, X shellcommand
- The command to executeignoreExitCode
- Is the exit code ignored?IOException
InterruptedException
public static Python getInterpreter(hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.EnvVars environment) throws IOException, InterruptedException
launcher
- The launcherlistener
- The build listenerenvironment
- The environmentIOException
InterruptedException
public static List<Python> getInterpreters(hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.EnvVars environment) throws IOException, InterruptedException
launcher
- The launcherlistener
- The build listenerenvironment
- The environmentIOException
InterruptedException
Copyright © 2004-2018. All Rights Reserved.