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() |
abstract List<String> |
getFallbackPackages() |
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 |
healthCheck(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) |
protected String |
run(hudson.Launcher launcher,
hudson.util.ArgumentListBuilder builder) |
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 healthCheck(hudson.Launcher launcher)
public abstract boolean cleanUp(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.FilePath tarBall) throws IOException, InterruptedException
IOException
InterruptedException
public abstract hudson.FilePath setUp(hudson.tools.ToolInstallation tool, hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
IOException
InterruptedException
public abstract boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.FilePath tarBall, String commands, boolean runAsRoot) throws IOException, InterruptedException
IOException
InterruptedException
public 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
IOException
InterruptedException
public abstract boolean addRepositories(hudson.FilePath tarBall, hudson.Launcher launcher, hudson.model.TaskListener log, List<Repository> Repositories) throws IOException, InterruptedException
IOException
InterruptedException
public abstract boolean updateRepositories(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.FilePath tarBall) throws IOException, InterruptedException
IOException
InterruptedException
public static hudson.ExtensionList<ChrootWorker> all()
public static ChrootWorker getByName(String name)
protected String getUserName(hudson.Launcher launcher) throws IOException, InterruptedException
IOException
InterruptedException
protected int getUID(hudson.Launcher launcher, String userName) throws IOException, InterruptedException
IOException
InterruptedException
protected int getGID(hudson.Launcher launcher, String userName) throws IOException, InterruptedException
IOException
InterruptedException
protected String getGroupName(hudson.Launcher launcher, String userName) throws IOException, InterruptedException
IOException
InterruptedException
protected String run(hudson.Launcher launcher, hudson.util.ArgumentListBuilder builder) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2004-2015. All Rights Reserved.