AWS CodePipeline introduces skipping stage
AWS CodePipeline V2 type pipelines introduces the ability to skip a stage as a result of a stage level condition evaluation. With this launch, you can now set “Skip,” “Fail,” and “Rollback” as a result of a stage condition failing. “Skip” can only be used with conditions evaluated before a pipeline execution enters a stage.
To skip a stage, add a condition to the before entry with “Skip” as the result. Add a rule such as variable check to the condition to evaluate if a pipeline variable matches a specific value. When a pipeline execution is waiting to enter the stage, the variable check rule is evaluated. If the rule fails, the condition fails and the stage where the condition is configured will fail, resulting in the stage being skipped.
To learn more about using the skipping a stage in your pipeline, visit our documentation. For more information about AWS CodePipeline, visit our product page. The stage level conditions feature is available in all regions where AWS CodePipeline is supported.