getBuildByKey method

Future getBuildByKey({
  1. required String pipelineId,
  2. required int buildNumber,
})

Retrieve the currently stored build data for the given pipelineId and buildNumber combination.

The result will be what is currently stored, ignoring any pending updates or deletes.

Only Connect apps that define the jiraBuildInfoProvider module, and on-premise integrations, can access this resource. This resource requires the 'READ' scope for Connect apps.

Implementation

Future<dynamic> getBuildByKey(
    {required String pipelineId, required int buildNumber}) async {
  return await _client.send(
    'get',
    'rest/builds/0.1/pipelines/{pipelineId}/builds/{buildNumber}',
    pathParameters: {
      'pipelineId': pipelineId,
      'buildNumber': '$buildNumber',
    },
  );
}