From e4764ad2cf8db29c090390cb297d9f70d9ac095f Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 7 Jan 2020 12:19:09 +1100 Subject: [PATCH] Separate download and extract steps for reporting --- .buildkite/hooks/pre-artifact | 1 + .buildkite/hooks/pre-command | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.buildkite/hooks/pre-artifact b/.buildkite/hooks/pre-artifact index a863c9ed..ac5c86b2 100755 --- a/.buildkite/hooks/pre-artifact +++ b/.buildkite/hooks/pre-artifact @@ -6,6 +6,7 @@ DOCKER_IMAGE=authelia/authelia if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]]; then + echo "--- :go::node: Saving artifacts for :chrome::selenium: Integration tests" tar --zstd -cf dist.tar.zst dist tar --zstd -cf web.tar.zst web fi diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 7886ee48..d062e5fe 100755 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -4,9 +4,12 @@ set +u if [[ $BUILDKITE_LABEL =~ ":selenium:" ]]; then + echo "--- :twisted_rightwards_arrows::desktop_computer: Downloading build artifacts" + buildkite-agent artifact download "dist.tar.zst" . + buildkite-agent artifact download "web.tar.zst" . echo "--- :go::node: Extracting build artifacts" - buildkite-agent artifact download "dist.tar.zst" . && tar xf dist.tar.zst - buildkite-agent artifact download "web.tar.zst" . && tar xf web.tar.zst + tar xf dist.tar.zst + tar xf web.tar.zst fi if [[ $BUILDKITE_LABEL =~ ":docker: Deploy Image" ]];