Package org.hivedb.teamcity.plugin.commands

Examples of org.hivedb.teamcity.plugin.commands.CloneCommand.run()


  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();
    }
View Full Code Here


      CloneCommand cmd = new CloneCommand(configuration);
      cmd.run(false);
    }
    else {
      FetchCommand cmd = new FetchCommand(configuration);
      cmd.run();
    }
    new CheckoutCommand(configuration).forceCheckout(configuration.getRemoteBranch());
  }

  public String getName() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.