hashicorp/packer

Add a --fail-fast behavior to build

Open

#8921 aperta il 19 mar 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Go (3228 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (13.697 star)
Metriche merge PR
 (Merge medio 4g 23h) (11 PR mergiate in 30 g)

Descrizione

Please search the existing issues for relevant feature requests, and use the reaction feature (https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to add upvotes to pre-existing requests.

Feature Description

When building multiple (AMIs) at the same time, if one fails the rest of the build process continues all the way to baking the final AMI. I suggest we have a notion of a --fail-fast argument. Where in if any part of a stage of the build process (defined by the same pause points as --debug does) fails, we cancel all builds immediately and clean-up as on-error dictates.

Use Case(s)

Mostly this would be useful in CI/CD environments or building new sets of images. If I'm targeting multiple OSes and one fails to build for whatever reason. Nothing after that matters to me. Either the whole build completes successful or it did not. Waiting till the end and having to clean-up the successful build just slows things down.

Guida contributor