public class HgExe extends Object
This reduces the amount of code in the main logic. TODO: perhaps a subtype 'Repository' with a repository location field would be good.
| Modifier and Type | Field and Description |
|---|---|
hudson.Launcher |
launcher |
hudson.model.TaskListener |
listener |
hudson.model.Node |
node |
| Constructor and Description |
|---|
HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
hudson.EnvVars env) |
HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.Node node,
hudson.model.TaskListener listener,
hudson.EnvVars env) |
| Modifier and Type | Method and Description |
|---|---|
hudson.Launcher.ProcStarter |
bundle(Collection<String> bases,
String file) |
hudson.Launcher.ProcStarter |
bundleAll(String file) |
hudson.Launcher.ProcStarter |
cleanAll() |
hudson.Launcher.ProcStarter |
clone(String... args) |
String |
config(hudson.FilePath repository,
String name)
Gets the current value of a specified config item.
|
Set<String> |
heads(hudson.FilePath repo,
boolean useTimeout)
Obtains the heads of the repository.
|
hudson.Launcher.ProcStarter |
init(hudson.FilePath path) |
String |
popen(hudson.FilePath repository,
hudson.model.TaskListener listener,
boolean useTimeout,
hudson.util.ArgumentListBuilder args)
Runs the command and captures the output.
|
hudson.Launcher.ProcStarter |
pull() |
hudson.Launcher.ProcStarter |
run(hudson.util.ArgumentListBuilder args) |
hudson.Launcher.ProcStarter |
run(String... args)
Runs arbitrary command.
|
String |
tip(hudson.FilePath repository,
String rev)
Gets the revision ID or node of the tip of the workspace.
|
String |
tipNumber(hudson.FilePath repository,
String rev)
Gets the revision number of the tip of the workspace.
|
hudson.Launcher.ProcStarter |
unbundle(String bundleFile) |
public final hudson.Launcher launcher
public final hudson.model.Node node
public final hudson.model.TaskListener listener
public HgExe(MercurialSCM scm, hudson.Launcher launcher, hudson.model.AbstractBuild build, hudson.model.TaskListener listener, hudson.EnvVars env) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic HgExe(MercurialSCM scm, hudson.Launcher launcher, hudson.model.Node node, hudson.model.TaskListener listener, hudson.EnvVars env) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic hudson.Launcher.ProcStarter pull()
public hudson.Launcher.ProcStarter clone(String... args)
public hudson.Launcher.ProcStarter bundleAll(String file)
public hudson.Launcher.ProcStarter bundle(Collection<String> bases, String file)
public hudson.Launcher.ProcStarter init(hudson.FilePath path)
public hudson.Launcher.ProcStarter unbundle(String bundleFile)
public hudson.Launcher.ProcStarter cleanAll()
public hudson.Launcher.ProcStarter run(String... args)
public hudson.Launcher.ProcStarter run(hudson.util.ArgumentListBuilder args)
public Set<String> heads(hudson.FilePath repo, boolean useTimeout) throws IOException, InterruptedException
IOExceptionInterruptedException@CheckForNull public String tip(hudson.FilePath repository, @Nullable String rev) throws IOException, InterruptedException
rev - the revision to identify; defaults to ., i.e. working copyIOExceptionInterruptedException@CheckForNull public String tipNumber(hudson.FilePath repository, @Nullable String rev) throws IOException, InterruptedException
rev - the revision to identify; defaults to ., i.e. working copyIOExceptionInterruptedExceptionpublic String config(hudson.FilePath repository, String name) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String popen(hudson.FilePath repository, hudson.model.TaskListener listener, boolean useTimeout, hudson.util.ArgumentListBuilder args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2012. All Rights Reserved.