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'
)
[REQUIRED]
The name of the pipeline that contains the failed stage.
[REQUIRED]
The name of the failed stage to be retried.
[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
[REQUIRED]
The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
dict
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