Package org.hivedb.teamcity.plugin.commands

Examples of org.hivedb.teamcity.plugin.commands.CloneCommand


  public String getCurrentVersion(VcsRoot root) throws VcsException {
    log.warn("Getting current version");
   
    GitConfiguration configuration = GitConfiguration.createServerConfiguration(root);
    if (!configuration.isProjectDirectoryARepository()) {
      new CloneCommand(configuration).run(false);
    }
    else {
      new FetchCommand(configuration).run();
    }
    LogCommand getLog = new LogCommand(configuration);
View Full Code Here


  public void updateSources(BuildProgressLogger logger, File workingDirectory, VcsRoot root, String version, IncludeRule includeRule) throws VcsException {
    GitConfiguration configuration = GitConfiguration.createAgentConfiguration(root, workingDirectory);
    if (!configuration.isProjectDirectoryARepository()) {
      workingDirectory.delete();
      CloneCommand cmd = new CloneCommand(configuration);
      cmd.run(false);
    }
    else {
      FetchCommand cmd = new FetchCommand(configuration);
      cmd.run();
    }
    new CheckoutCommand(configuration).forceCheckout(configuration.getRemoteBranch());
  }
View Full Code Here

TOP

Related Classes of org.hivedb.teamcity.plugin.commands.CloneCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.