hashicorp/packer

Add a --fail-fast behavior to build

Open

#8,921 创建于 2020年3月19日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Go (13,697 star) (3,228 fork)batch import
enhancementhelp wanted

描述

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.

贡献者指南

Add a --fail-fast behavior to build · hashicorp/packer#8921 | Good First Issue