2023/10/17 - AWS CodePipeline - 1 updated api methods
Changes Add retryMode ALL_ACTIONS to RetryStageExecution API that retries a failed stage starting from first action in the stage
{'retryMode': {'ALL_ACTIONS'}}
You can retry a stage that has failed without having to run a pipeline again from the beginning. You do this by either retrying the failed actions in a stage or by retrying all actions in the stage starting from the first action in the stage. When you retry the failed actions in a stage, all actions that are still in progress continue working, and failed actions are triggered again. When you retry a failed stage from the first action in the stage, the stage cannot have any actions in progress. Before a stage can be retried, it must either have all actions failed or some actions failed and some succeeded.
See also: AWS API Documentation
Request Syntax
client.retry_stage_execution( pipelineName='string', stageName='string', pipelineExecutionId='string', retryMode='FAILED_ACTIONS'|'ALL_ACTIONS' )
string
[REQUIRED]
The name of the pipeline that contains the failed stage.
string
[REQUIRED]
The name of the failed stage to be retried.
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
string
[REQUIRED]
The scope of the retry attempt.
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.