org.paylogic.jenkins.advancedscm.backends.helpers
Class AdvancedHgExe

java.lang.Object
  extended by hudson.plugins.mercurial.HgExe
      extended by org.paylogic.jenkins.advancedscm.backends.helpers.AdvancedHgExe

public class AdvancedHgExe
extends hudson.plugins.mercurial.HgExe


Field Summary
static int DEFAULT_PUSH_TIMEOUT
           
static int DEFAULT_TIMEOUT
           
 
Fields inherited from class hudson.plugins.mercurial.HgExe
launcher, listener, node
 
Constructor Summary
AdvancedHgExe(hudson.plugins.mercurial.MercurialSCM scm, hudson.Launcher launcher, hudson.model.AbstractBuild build, hudson.model.TaskListener listener)
           
 
Method Summary
 String branch()
           
 String branches(String[] extraArgs)
           
 String clean()
           
 String commit(String message, String username, String... extraArgs)
           
static int joinWithPossibleTimeout(hudson.Launcher.ProcStarter proc, int timeout, hudson.model.TaskListener listener)
          For use with HgExe.launch(hudson.util.ArgumentListBuilder) (or similar) when running commands not inside a build and which therefore might not be easily killed.
 String merge(String revision)
           
 String[] out()
           
 String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args)
           
 String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args, int[] returnCodes)
          Runs the command and captures the output.
 String pullChanges()
           
 String pullChanges(String otherRepo)
           
 String pullChanges(String otherRepo, String branch)
           
 String push(String[] extraArgs)
           
 String strip(String[] extraArgs)
           
 String update(String revision)
           
 String updateClean(String revision)
           
 
Methods inherited from class hudson.plugins.mercurial.HgExe
bundle, bundleAll, cleanAll, clone, close, config, heads, init, joinWithPossibleTimeout, launch, popen, pull, run, run, seed, tip, tipNumber, unbundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static int DEFAULT_TIMEOUT

DEFAULT_PUSH_TIMEOUT

public static int DEFAULT_PUSH_TIMEOUT
Constructor Detail

AdvancedHgExe

public AdvancedHgExe(hudson.plugins.mercurial.MercurialSCM scm,
                     hudson.Launcher launcher,
                     hudson.model.AbstractBuild build,
                     hudson.model.TaskListener listener)
              throws IOException,
                     InterruptedException
Throws:
IOException
InterruptedException
Method Detail

popen

public String popen(hudson.FilePath repository,
                    hudson.model.TaskListener listener,
                    int timeout,
                    hudson.util.ArgumentListBuilder args,
                    int[] returnCodes)
             throws IOException,
                    InterruptedException
Runs the command and captures the output.

Throws:
IOException
InterruptedException

joinWithPossibleTimeout

public static int joinWithPossibleTimeout(hudson.Launcher.ProcStarter proc,
                                          int timeout,
                                          hudson.model.TaskListener listener)
                                   throws IOException,
                                          InterruptedException
For use with HgExe.launch(hudson.util.ArgumentListBuilder) (or similar) when running commands not inside a build and which therefore might not be easily killed.

Throws:
IOException
InterruptedException

popen

public String popen(hudson.FilePath repository,
                    hudson.model.TaskListener listener,
                    int timeout,
                    hudson.util.ArgumentListBuilder args)
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

branch

@CheckForNull
public String branch()
              throws IOException,
                     InterruptedException
Throws:
IOException
InterruptedException

branches

@CheckForNull
public String branches(String[] extraArgs)
                throws IOException,
                       InterruptedException
Throws:
IOException
InterruptedException

update

public String update(String revision)
              throws IOException,
                     InterruptedException
Throws:
IOException
InterruptedException

updateClean

public String updateClean(String revision)
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException

clean

public String clean()
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

out

public String[] out()
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

commit

public String commit(String message,
                     String username,
                     String... extraArgs)
              throws IOException,
                     InterruptedException
Throws:
IOException
InterruptedException

merge

public String merge(String revision)
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

push

public String push(String[] extraArgs)
            throws IOException,
                   InterruptedException
Throws:
IOException
InterruptedException

strip

public String strip(String[] extraArgs)
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

pullChanges

public String pullChanges()
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException

pullChanges

public String pullChanges(String otherRepo)
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException

pullChanges

public String pullChanges(String otherRepo,
                          String branch)
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2004-2014. All Rights Reserved.