Skip to content

Commit 0502f5d

Browse files
committed
Fix tar command to ensure logs are archived even on failure
1 parent 31cfae6 commit 0502f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- matlab/run-tests:
2525
source-folder: code
2626
- run:
27-
command: tar --ignore-failed-read -cvzf mw-logs.tar /home/circleci/project/mw_logs /tmp/mathworks_*.log
27+
command: tar -cvzf mw-logs.tar /home/circleci/project/mw_logs /tmp/mathworks_*.log || true
2828
when: on_fail
2929
- store_artifacts:
3030
path: mw-logs.tar

0 commit comments

Comments
 (0)