Currently, CodePipeline does not support skipping a stage/action. The available option to bypass this failing stage would be to edit the pipeline, remove the action and re-run the Pipeline.
You may automate the process of bypassing the failing stage by creating an event rule to monitor the Pipeline for failed action-level events. This event can then be routed to targets such as Lambda and SNS. The Lambda can be configured to make GetPipeline and UpdatePipeline calls to remove the failing action.
There is an existing feature request for CodePipeline to support skipping a stage or action and I have added your request to it. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New, Document History and Blog pages for any new feature announcements.
I dont think there is direct support for this. However, the way I worked around it was:
- Add a Pipeline Variable called something like "ACTION" with a value of "process", "apply" or, in this case, "no-op" to represent a bypass scenario.
- In your buildspec (or scripts) add the little logic to evaluate that ACTION. Something like the code below.
if [ $ACTION == "process" ]; then process.sh elif [$ACTION == "no-op"]; then echo "Received value of no-op, bypassing this step" ....etc.
Use same CodeBuild project for multiple GitHub repositoriesAccepted Answerasked a year ago
best approach to run codebuild steps in parallel?asked 3 years ago
How to use codecommit submodules in CodeBuildasked 6 months ago
CodeBuild Error: Cannot have more than 0 builds in queue for the accountasked 7 months ago
How to query Codebuild/Cloudwatch Logs from Buildspec.yml in CodeBuildasked 2 months ago
How not to have codebuild headers on s3 files deployed from pipeline?asked 9 months ago
[CodeBuild] Error to build with the CodeBuildasked 4 months ago
Can I skip one of the action in CodeBuild ? to continue the pipielineAccepted Answerasked 8 months ago
Can CodeBuild perform the following actions?asked 3 years ago
Codebuild Fails Pulling Source when using CodePipeline Source Provider(GH Enterprise)asked 3 months ago