public class Mercurial extends AbstractSCMInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
Mercurial.DescriptorImpl |
| Constructor and Description |
|---|
Mercurial(boolean reset,
String branch) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
String |
getBranch() |
boolean |
getReset() |
hudson.FilePath |
getWorkingDirectory() |
int |
hg(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
OutputStream out,
String... cmds)
Invoke a command with mercurial
|
int |
hg(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
String... cmds)
Invoke a command with mercurial
|
Commit<String> |
nextCommit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
Commit<?> commit)
Calculate and return the next commit from the argument
|
void |
prepareWorkspace(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
Commit<?> commit)
This function is called after the SCM plugin has updated the workspace
with remote changes.
|
void |
rollback(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setWorkingDirectory(hudson.FilePath workingDirectory) |
all, getDescriptor, getDescriptors, getRequiredResult, handlePostBuild@DataBoundConstructor
public Mercurial(boolean reset,
String branch)
public boolean getReset()
public String getBranch()
public void setWorkingDirectory(hudson.FilePath workingDirectory)
public hudson.FilePath getWorkingDirectory()
public int hg(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
String... cmds)
throws IOException,
InterruptedException
build - launcher - listener - cmds - IOExceptionInterruptedExceptionpublic int hg(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
OutputStream out,
String... cmds)
throws IOException,
InterruptedException
build - launcher - listener - cmds - IOExceptionInterruptedExceptionpublic void prepareWorkspace(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
Commit<?> commit)
throws hudson.AbortException,
IOException,
IllegalArgumentException
AbstractSCMInterfaceprepareWorkspace in class AbstractSCMInterfacecommit - This commit represents the code that must be checked out.hudson.AbortException - It is not possible to leave the workspace in a
state as described above.IOException - A repository could not be reached.IllegalArgumentExceptionpublic Commit<String> nextCommit(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, Commit<?> commit) throws IOException, IllegalArgumentException
AbstractSCMInterfacenextCommit in class AbstractSCMInterfaceIOException - A repository could not be reached.IllegalArgumentExceptionpublic void commit(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
commit in class AbstractSCMInterfaceIOExceptionInterruptedExceptionpublic void rollback(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
rollback in class AbstractSCMInterfaceIOExceptionInterruptedExceptionCopyright © 2004-2013. All Rights Reserved.