handleBuildJobStatusChange method

Future<void> handleBuildJobStatusChange(
  1. BuildJob buildJob,
  2. String status
)

Handles Build Job status changes (notifications, etc).

Implementation

Future<void> handleBuildJobStatusChange(
  BuildJob buildJob,
  String status,
) async {
  final response = await _apiService.handleBuildJobStatusChange(buildJob.id, {
    'status': status,
  });
  if (response.isSuccessful) {
    return;
  }
  throw HttpException(
    'Failed to process status change on server: ${response.statusCode} ${response.error}',
  );
}