From 59a7f9140eab582ba3201d3f7aa8c9a50a080bf0 Mon Sep 17 00:00:00 2001 From: Kevin Burnett <18027+burnettk@users.noreply.github.com> Date: Thu, 10 Mar 2022 12:52:15 -0500 Subject: [PATCH] Codify comment about error checking (#11653) --- website/content/guides/packer-on-cicd/pipelineing-builds.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/content/guides/packer-on-cicd/pipelineing-builds.mdx b/website/content/guides/packer-on-cicd/pipelineing-builds.mdx index 9a8ee3ba2..dbd519eb1 100644 --- a/website/content/guides/packer-on-cicd/pipelineing-builds.mdx +++ b/website/content/guides/packer-on-cicd/pipelineing-builds.mdx @@ -345,8 +345,9 @@ pipeline.sh ```sh #!/bin/bash +set -e # abort if there is an issue with any build packer build -only='step1.docker.example' . packer build -only='step2.docker.example' . ``` -To run the pipeline, call pipeline.sh. You can add error checking to this script to abort if there's an issue with a build. You can create as many build steps as you want. Each can either inhabit one file +To run the pipeline, call pipeline.sh. You can create as many build steps as you want. Each can either inhabit one file