Ensure we fail packer jobs if any step fails 07/59907/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Jul 2017 01:51:12 +0000 (11:51 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Jul 2017 01:51:12 +0000 (11:51 +1000)
Change-Id: If1edd1d8da78880b89937f425e34e29e18deeb81
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/releng-macros.yaml

index fc4395df47a0908d795df551864af5f947930938..0b75b00372488a804555a614df709c5efe6710b6 100644 (file)
               variable: 'CLOUDENV'
       - shell: |
           #!/bin/bash
+          # Ensure we fail the job if any steps fail.
+          set -eu -o pipefail
           cd packer
           varfiles="../packer/vars/*"
           templates="../packer/templates/*"
               variable: 'CLOUDENV'
       - shell: |
           #!/bin/bash
+          # Ensure we fail the job if any steps fail.
+          set -eu -o pipefail
           cd packer
           export PACKER_LOG="yes" && \
           export PACKER_LOG_PATH="packer-build.log" && \