retry_stage_execution

CodePipeline.Client.retry_stage_execution(**kwargs)

Resumes the pipeline execution by retrying the last failed actions in a stage. You can retry a stage immediately if any of the actions in the stage fail. When you retry, all actions that are still in progress continue working, and failed actions are triggered again.

See also: AWS API Documentation

Request Syntax

response = client.retry_stage_execution(
    pipelineName='string',
    stageName='string',
    pipelineExecutionId='string',
    retryMode='FAILED_ACTIONS'
)
Parameters
  • pipelineName (string) --

    [REQUIRED]

    The name of the pipeline that contains the failed stage.

  • stageName (string) --

    [REQUIRED]

    The name of the failed stage to be retried.

  • pipelineExecutionId (string) --

    [REQUIRED]

    The ID of the pipeline execution in the failed stage to be retried. Use the GetPipelineState action to retrieve the current pipelineExecutionId of the failed stage

  • retryMode (string) --

    [REQUIRED]

    The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.

Return type

dict

Returns

Response Syntax

{
    'pipelineExecutionId': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a RetryStageExecution action.

    • pipelineExecutionId (string) --

      The ID of the current workflow execution in the failed stage.

Exceptions

  • CodePipeline.Client.exceptions.ValidationException
  • CodePipeline.Client.exceptions.ConflictException
  • CodePipeline.Client.exceptions.PipelineNotFoundException
  • CodePipeline.Client.exceptions.StageNotFoundException
  • CodePipeline.Client.exceptions.StageNotRetryableException
  • CodePipeline.Client.exceptions.NotLatestPipelineExecutionException