From 8cf76ce01b587f65faf03c112dc1c0fdbbab7fab Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Thu, 9 Jul 2020 11:09:47 -0700 Subject: [PATCH] Wrap up s3 command to stop on missing gem --- .ci/spec/create-hosts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/spec/create-hosts.sh b/.ci/spec/create-hosts.sh index 65440fcfd..c118e8cc9 100755 --- a/.ci/spec/create-hosts.sh +++ b/.ci/spec/create-hosts.sh @@ -22,7 +22,8 @@ export PKT_VAGRANT_VAGRANTFILE=Vagrantfile.spec # Grab vagrant-spec gem and place inside root dir of Vagrant repo # TODO put back the wrap and error message below -aws s3 cp "${ASSETS_PRIVATE_BUCKET}/vagrant-spec/vagrant-spec.gem" "vagrant-spec.gem" +wrap aws s3 cp "${ASSETS_PRIVATE_BUCKET}/vagrant-spec/vagrant-spec.gem" "vagrant-spec.gem" \ + "Could not download vagrant-spec.gem from s3 asset bucket" ### # Run the job