Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: skip post_build on build failure (aws#18365)
According to the docs on CodeBuild [build transitions], the `POST_BUILD` step is always run after `BUILD`, even if `BUILD` fails. This can mean in our pipeline we can fail the build, and then wait for the (currently very expensive) packing step to run completely before the job fails. This change short-circuits the logic so we only run pack if the build succeeded. [build transitions]: https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information