Message ID | 20220322152018.3417222-1-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | CI: save task logs when a job fails | expand |
On Tue, 22 Mar 2022 15:20:18 +0000, Ross Burton wrote:
> Create a job artifact containing all of the task logs if the job fails.
Applied, thanks!
[1/1] CI: save task logs when a job fails
commit: 28acb5fbd4cd01db3673d700b49c5a6ed12da3eb
Best regards,
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13195930..7883d35f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,6 +35,11 @@ stages: - kas shell --update --force-checkout $KASFILES -c 'cat conf/*.conf' - kas build $KASFILES - ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log + artifacts: + name: "logs" + when: on_failure + paths: + - $CI_PROJECT_DIR/work/build/tmp/work*/**/temp/log.do_*.* # Workaround for Zephyr not currectly handling TESTIMAGE_AUTO .build_and_test:
Create a job artifact containing all of the task logs if the job fails. Signed-off-by: Ross Burton <ross.burton@arm.com> --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+)