use of com.thoughtworks.go.util.command.ProcessRunner in project gocd by gocd.
the class DevelopmentAgent method main.
public static void main(String[] args) throws Exception {
new ProcessRunner().command("curl", "http://localhost:8153/go/admin/agent-plugins.zip", "--fail", "--silent", "--output", "agent-plugins.zip").failOnError(false).run();
new ProcessRunner().command("curl", "http://localhost:8153/go/admin/tfs-impl.jar", "--fail", "--silent", "--output", "tfs-impl.jar").failOnError(false).run();
new SystemEnvironment().set(SystemEnvironment.PLUGIN_ACTIVATOR_JAR_PATH, "go-plugin-activator.jar");
assertActivationJarPresent();
AgentMain.main("-serverUrl", "https://localhost:8154/go");
}
Aggregations