createRun method

Future<void> createRun(
  1. String buildJobId,
  2. String runId
)

Creates a build run record in Firestore.

Implementation

Future<void> createRun(String buildJobId, String runId) async {
  final response = await _apiService.createRun(buildJobId, {'id': runId});
  if (response.isSuccessful) {
    return;
  }
  throw HttpException(
    'Failed to create run on server: ${response.statusCode} ${response.error}',
  );
}