Skip to content

Commit 76ca005

Browse files
committed
Fix tar command to ensure logs are archived even on failure
1 parent b8f1968 commit 76ca005

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
@@ -47,7 +47,7 @@ jobs:
4747
- matlab/run-tests:
4848
source-folder: code
4949
- run:
50-
command: tar --ignore-failed-read -cvzf mw-logs.tar /home/circleci/project/mw_logs "$TEMP"/mathworks_*.log "$TMPDIR"/mathworks_*.log /tmp/mathworks_*.log
50+
command: tar -cvzf mw-logs.tar /home/circleci/project/mw_logs "$TEMP"/mathworks_*.log "$TMPDIR"/mathworks_*.log /tmp/mathworks_*.log || true
5151
when: on_fail
5252
shell: bash
5353
- store_artifacts:

0 commit comments

Comments
 (0)