use of com.facebook.buck.distributed.thrift.CreateBuildRequest in project buck by facebook.
the class DistBuildService method createBuild.
public BuildJob createBuild() throws IOException {
// Tell server to create the build and get the build id.
CreateBuildRequest createTimeRequest = new CreateBuildRequest();
createTimeRequest.setCreateTimestampMillis(System.currentTimeMillis());
FrontendRequest request = new FrontendRequest();
request.setType(FrontendRequestType.CREATE_BUILD);
request.setCreateBuildRequest(createTimeRequest);
FrontendResponse response = makeRequestChecked(request);
return response.getCreateBuildResponse().getBuildJob();
}
Aggregations