From 90381fc250b1db07b436e51483c56636226d7aa7 Mon Sep 17 00:00:00 2001 From: armab Date: Fri, 1 Jun 2018 13:28:06 +0100 Subject: [PATCH] Fix sharing st2 logs when CircleCI job failed --- circle.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index d127c5d9..d91bacea 100644 --- a/circle.yml +++ b/circle.yml @@ -87,11 +87,11 @@ jobs: # working_directory: ~/st2-packages - run: name: Test the Packages - command: | - set -x - .circle/docker-compose2.sh test ${DISTRO} - # Once test container finishes we can copy logs directly from it - docker cp st2-packages-vol:/var/log/st2 ~/st2-packages/build/${DISTRO}/log/st2 + command: .circle/docker-compose2.sh test ${DISTRO} + - run: + when: always + name: Grab the st2 logs + command: docker cp st2-packages-vol:/var/log/st2 ~/st2-packages/build/${DISTRO}/log/st2 - store_artifacts: path: ~/st2-packages/build destination: packages