use of com.facebook.buck.distributed.thrift.StartBuildRequest in project buck by facebook.
the class DistBuildService method startBuild.
public BuildJob startBuild(StampedeId id) throws IOException {
// Start the build
StartBuildRequest startRequest = new StartBuildRequest();
startRequest.setStampedeId(id);
FrontendRequest request = new FrontendRequest();
request.setType(FrontendRequestType.START_BUILD);
request.setStartBuildRequest(startRequest);
FrontendResponse response = makeRequestChecked(request);
BuildJob job = response.getStartBuildResponse().getBuildJob();
Preconditions.checkState(job.getStampedeId().equals(id));
return job;
}
Aggregations