Skip to content

Commit 40d278a

Browse files
authored
Merge pull request #561 from StackStorm/fix/ci-st2-logs-sharing
Fix sharing st2 logs when CircleCI job failed
2 parents f57b401 + 90381fc commit 40d278a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

circle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ jobs:
8787
# working_directory: ~/st2-packages
8888
- run:
8989
name: Test the Packages
90-
command: |
91-
set -x
92-
.circle/docker-compose2.sh test ${DISTRO}
93-
# Once test container finishes we can copy logs directly from it
94-
docker cp st2-packages-vol:/var/log/st2 ~/st2-packages/build/${DISTRO}/log/st2
90+
command: .circle/docker-compose2.sh test ${DISTRO}
91+
- run:
92+
when: always
93+
name: Grab the st2 logs
94+
command: docker cp st2-packages-vol:/var/log/st2 ~/st2-packages/build/${DISTRO}/log/st2
9595
- store_artifacts:
9696
path: ~/st2-packages/build
9797
destination: packages

0 commit comments

Comments
 (0)