AWS CodePipeline V2 type pipelines introduces the ability to automatically retry a stage if there is a failure in the stage. A stage fails if any action in the stage fails. To use automatic retry, set “Retry” as the result for the on failure lifecycle event of a stage, and optionally configure the flag to retry the stage from the first action or from the failed actions. When a pipeline execution fails any action in the stage, then the pipeline execution will be retried in the stage once.
Automatic retry can be useful for a stage with actions that can experience transient errors. Instead of failing the pipeline execution, you can automatically retry the pipeline execution in the failed stage.
To learn more about automatically retrying a stage on failure in your pipeline, visit our documentation. For more information about AWS CodePipeline, visit our product page. The retry stage feature is available in all regions where AWS CodePipeline is supported.
Source:: Amazon AWS