use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class RemoteCommandImpl method call.
@Override
public void call() throws VcsException {
if (myCommand == null) {
throw new IllegalStateException("Please specify command");
}
final GitCommandLine cmd = getCmd();
cmd.addParameters("remote", myCommand, myName);
runCmd(cmd.stdErrLogLevel("debug"));
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class TagCommandImpl method call.
@Override
public void call() throws VcsException {
GitCommandLine cmd = getCmd().stdErrExpected(false);
cmd.addParameter("tag");
if (myDelete) {
cmd.addParameter("-d");
}
if (myAnnotate) {
cmd.addParameters("-a", "-m", myMessage);
if (StringUtil.isNotEmpty(myTaggerName)) {
cmd.addEnvParam("GIT_COMMITTER_NAME", myTaggerName);
cmd.addEnvParam("GIT_COMMITTER_EMAIL", myTaggerEmail);
}
}
if (myForce) {
cmd.addParameter("-f");
}
if (myName != null) {
cmd.addParameter(myName);
}
if (myCommit != null) {
cmd.addParameter(myCommit);
}
CommandUtil.runCommand(cmd.stdErrExpected(false), 60);
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class AgentGitFacadeImpl method listBranches.
@NotNull
public Branches listBranches(boolean all) throws VcsException {
GitCommandLine cmd = createCommandLine();
cmd.addParameter("branch");
if (all)
cmd.addParameter("-a");
return parseBranches(CommandUtil.runCommand(cmd.stdErrExpected(false)).getStdout());
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class CheckoutCommandImpl method call.
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameters("checkout", "-q");
if (myForce)
cmd.addParameter("-f");
cmd.addParameter(myBranch);
runCmd(cmd);
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class DeleteTagCommandImpl method call.
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameter("tag");
cmd.addParameter("-d");
cmd.addParameter(myName);
CommandUtil.runCommand(cmd);
}
Aggregations