|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkinsci.plugins.pretestedintegration.HgUtils
public class HgUtils
Collection of static methods for interacting with Mercurial. TODO: All functionality in this class must be moved once we finish our design for interacting with different SCMs through a single interface.
| Constructor Summary | |
|---|---|
HgUtils()
|
|
| Method Summary | |
|---|---|
static hudson.util.ArgumentListBuilder |
createArgumentListBuilder(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Get an interface to the Mercurial executable corresponding to the current build. |
static Hashtable<String,String> |
getCommitInfoByRev(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String rev)
Returns a dictionary with the fields "changeset", "branch", "user", "date", "message" for a given revision. |
static Hashtable<String,String> |
getNewestCommitInfo(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Returns a dictionary with the fields "changeset", "branch", "user", "date", "message". |
static BufferedReader |
runScmCommand(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.util.ArgumentListBuilder cmd)
Run an Mercurial command given an ArgumentListBuilder describing the arguments. |
static BufferedReader |
runScmCommand(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String[] command)
Run an Mercurial command given a list of arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HgUtils()
| Method Detail |
|---|
public static hudson.util.ArgumentListBuilder createArgumentListBuilder(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
AbstractBuild - Launcher - BuildListener -
IOException
InterruptedException
public static BufferedReader runScmCommand(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String[] command)
throws hudson.AbortException,
IOException,
InterruptedException
AbstractBuild - Launcher - BuildListener - String[] - List of arguments for the Mercurial executable.
hudson.AbortException
IOException
InterruptedException
public static BufferedReader runScmCommand(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.util.ArgumentListBuilder cmd)
throws hudson.AbortException,
IOException,
InterruptedException
AbstractBuild - Launcher - BuildListener - ArgumentListBuilder - Argument list describing what to pass to the
Mercurial executable.
hudson.AbortException
IOException
InterruptedException
public static Hashtable<String,String> getNewestCommitInfo(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException,
hudson.AbortException
AbstractBuild - Launcher - BuildListener -
IOException
InterruptedException
hudson.AbortException
public static Hashtable<String,String> getCommitInfoByRev(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String rev)
throws IOException,
InterruptedException,
hudson.AbortException
AbstractBuild - Launcher - BuildListener -
IOException
InterruptedException
hudson.AbortException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||