Search in sources :

Example 1 with ProcessRunner

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");
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) ProcessRunner(com.thoughtworks.go.util.command.ProcessRunner)

Aggregations

SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 ProcessRunner (com.thoughtworks.go.util.command.ProcessRunner)1