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) |
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)
Deprecated.
|
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) |
hudson.Launcher.ProcStarter |
launch(hudson.util.ArgumentListBuilder args)
Prepares to start the Mercurial command.
|
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()
Deprecated.
|
hudson.Launcher.ProcStarter |
run(hudson.util.ArgumentListBuilder args)
Deprecated.
Use
seed(boolean) and launch(hudson.util.ArgumentListBuilder) instead. |
hudson.Launcher.ProcStarter |
run(String... args)
Runs arbitrary command.
|
hudson.util.ArgumentListBuilder |
seed(boolean allowDebug)
Starts creating an argument list.
|
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) 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 launch(hudson.util.ArgumentListBuilder args)
args - some arguments as created by seed(boolean) and then appended topublic hudson.util.ArgumentListBuilder seed(boolean allowDebug)
allowDebug - whether to add a debug flag if the configured installation requested it@Deprecated public hudson.Launcher.ProcStarter pull()
@Deprecated 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)
@Deprecated 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-2013. All Rights Reserved.