DEV Community

Karthik Sakthivel
Karthik Sakthivel

Posted on

AWS CodePipeline V2 type pipelines supports to automatically retry a stage if there is a failure in the stage.

What's new at AWS πŸ“’

πŸ”° #AWSCodePipeline V2 type pipelines supports to automatically retry a stage if there is a failure in the stage.

πŸ”° To leverage automatic retry, set β€œRetry” as the result for the on failure lifecycle event of a stage

πŸ”° Optionally you can also 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.

β­• Three core constructs of CodePipeline:
1️⃣ Pipelines: –
βœ”οΈ It is a workflow that constructs how application/service changes go through a release process
βœ”οΈ Each pipeline is a series of stages.
2️⃣ Stages: –
βœ”οΈ It is a logical unit, used to isolate and to limit the number of concurrent changes in that environment.
βœ”οΈ Each stage contains actions
3️⃣ Actions: –
βœ”οΈ It is a set of operations performed on application code

 βœ”οΈ It is configured, that the actions run in the pipeline at a specified point.
Enter fullscreen mode Exit fullscreen mode

β­• Important key note:
βœ”οΈ Retrying a failed stage retries all actions in the stage from the first action in the stage
βœ”οΈ Retrying failed actions, only retries all failed actions in the stage.

β­• Key benefits:
βœ”οΈ Useful at stage with actions that can experience transient errors.
βœ”οΈ It helps to retry at failed stage, instead of pipeline execution failed.

πŸ“Œ Explore more about automatically retrying a stage:
https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-retry.html#stage-retry-auto

Top comments (0)