|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenkins.plugins.shiningpanda.utils.BuilderUtil
public class BuilderUtil
Constructor Summary | |
---|---|
BuilderUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuilderUtil()
Method Detail |
---|
public static hudson.EnvVars getEnvironment(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener) throws IOException, InterruptedException
build
- The buildlistener
- The build listener
IOException
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 name
IOException
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 interpreter
IOException
InterruptedException
public static Virtualenv getVirtualenv(hudson.model.BuildListener listener, hudson.FilePath home) throws IOException, InterruptedException
listener
- The listenerhome
- The home folder
IOException
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 environment
IOException
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 environment
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |