@Immutable @Loggable(value=1) public final class Git extends Object implements SCM
It is assumed that BASH is installed inside that shell.
| Constructor and Description |
|---|
Git(Shell shl,
URI addr,
String folder)
Public ctor.
|
Git(Shell shl,
URI addr,
String folder,
PrivateKey priv)
Public ctor.
|
public Git(@NotNull(message="shell can\'t be NULL") Shell shl, @NotNull(message="URI can\'t be NULL") URI addr, @NotNull(message="folder can\'t be NULL") String folder)
shl - Shell to use for checkoutaddr - URL of git repositoryfolder - Directory to use for clonepublic Git(Shell shl, URI addr, String folder, PrivateKey priv)
shl - Shell to use for checkoutaddr - URI of git repositoryfolder - Directory to use for clonepriv - Private key to use locally@Step(value="Git branch `${args[0]}` checked out") @RetryOnFailure(verbose=false) @Loggable(value=1, limit=5) public Branch checkout(String name) throws IOException
SCMcheckout in interface SCMname - Branch name to checkout (SCM dependent)IOException - If fails@Step(value="found ${result.size()} refs in Git") @RetryOnFailure(verbose=false) public Collection<String> branches() throws IOException
SCMbranches in interface SCMIOException - If fails@RetryOnFailure(verbose=false) @Loggable(value=1, limit=5, ignore=java.io.IOException.class) public Iterable<Commit> log(String branch) throws IOException
branch - Branch nameIOException - If failsCopyright © 2009–2014 Rultor Inc.. All rights reserved.