public abstract class ChrootWorker extends Object implements hudson.ExtensionPoint
| Constructor and Description |
|---|
ChrootWorker() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addRepositories(hudson.FilePath tarBall,
hudson.Launcher launcher,
hudson.model.TaskListener log,
List<Repository> Repositories) |
static hudson.ExtensionList<ChrootWorker> |
all() |
abstract boolean |
cleanUp(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall) |
static ChrootWorker |
getByName(String name) |
abstract List<String> |
getDefaultPackages() |
protected int |
getGID(hudson.Launcher launcher,
String userName) |
protected String |
getGroupName(hudson.Launcher launcher,
String userName) |
abstract String |
getName() |
abstract String |
getTool() |
protected int |
getUID(hudson.Launcher launcher,
String userName) |
protected String |
getUserName(hudson.Launcher launcher) |
abstract boolean |
installPackages(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall,
List<String> packages,
boolean forceInstall) |
abstract boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall,
String commands,
boolean runAsRoot) |
abstract hudson.FilePath |
setUp(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log) |
abstract boolean |
updateRepositories(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall) |
public abstract String getName()
public abstract String getTool()
public abstract boolean cleanUp(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract hudson.FilePath setUp(hudson.tools.ToolInstallation tool,
hudson.model.Node node,
hudson.model.TaskListener log)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall,
String commands,
boolean runAsRoot)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean installPackages(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall,
List<String> packages,
boolean forceInstall)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean addRepositories(hudson.FilePath tarBall,
hudson.Launcher launcher,
hudson.model.TaskListener log,
List<Repository> Repositories)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean updateRepositories(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.FilePath tarBall)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static hudson.ExtensionList<ChrootWorker> all()
public static ChrootWorker getByName(String name)
protected String getUserName(hudson.Launcher launcher) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected int getUID(hudson.Launcher launcher,
String userName)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected int getGID(hudson.Launcher launcher,
String userName)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected String getGroupName(hudson.Launcher launcher, String userName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2014. All Rights Reserved.