getDeploymentByKey method

Future getDeploymentByKey({
  1. required String pipelineId,
  2. required String environmentId,
  3. required int deploymentSequenceNumber,
})

Retrieve the currently stored deployment data for the given pipelineId, environmentId and deploymentSequenceNumber combination.

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

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

Implementation

Future<dynamic> getDeploymentByKey(
    {required String pipelineId,
    required String environmentId,
    required int deploymentSequenceNumber}) async {
  return await _client.send(
    'get',
    'rest/deployments/0.1/pipelines/{pipelineId}/environments/{environmentId}/deployments/{deploymentSequenceNumber}',
    pathParameters: {
      'pipelineId': pipelineId,
      'environmentId': environmentId,
      'deploymentSequenceNumber': '$deploymentSequenceNumber',
    },
  );
}