use of com.thoughtworks.go.domain.materials.AgentSubprocessExecutionContext in project gocd by gocd.
the class TfsExecutor method execute.
@Override
public boolean execute(BuildCommand command, BuildSession buildSession) {
String url = command.getStringArg("url");
String username = command.getStringArg("username");
String password = command.getStringArg("password");
String domain = command.getStringArg("domain");
String projectPath = command.getStringArg("projectPath");
String revision = command.getStringArg("revision");
File workingDir = buildSession.resolveRelativeDir(command.getWorkingDirectory());
ConsoleOutputStreamConsumer consoleOutputStreamConsumer = new LabeledOutputStreamConsumer(TaggedStreamConsumer.PREP, TaggedStreamConsumer.PREP_ERR, buildSession.processOutputStreamConsumer());
RevisionContext revisionContext = new RevisionContext(new StringRevision(revision));
AgentSubprocessExecutionContext execCtx = new AgentSubprocessExecutionContext(buildSession.getAgentIdentifier(), workingDir.getAbsolutePath());
createMaterial(url, username, password, domain, projectPath).updateTo(consoleOutputStreamConsumer, workingDir, revisionContext, execCtx);
return true;
}
Aggregations