Search in sources :

Example 1 with CreateBuildRequest

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();
}
Also used : FrontendResponse(com.facebook.buck.distributed.thrift.FrontendResponse) FrontendRequest(com.facebook.buck.distributed.thrift.FrontendRequest) CreateBuildRequest(com.facebook.buck.distributed.thrift.CreateBuildRequest)

Aggregations

CreateBuildRequest (com.facebook.buck.distributed.thrift.CreateBuildRequest)1 FrontendRequest (com.facebook.buck.distributed.thrift.FrontendRequest)1 FrontendResponse (com.facebook.buck.distributed.thrift.FrontendResponse)1