From 8ce0b8bf73ea26dd474cf8174e03620c49fa6fbe Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 23 Nov 2023 08:03:42 +0100 Subject: [PATCH] ci: fix upload failed job log script --- .gitlab/ci/common.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab/ci/common.yml b/.gitlab/ci/common.yml index d5e2fed1de..0b076cecd5 100644 --- a/.gitlab/ci/common.yml +++ b/.gitlab/ci/common.yml @@ -173,10 +173,9 @@ variables: test "$CI_CCACHE_STATS" == 1 && test -n "$(which ccache)" && ccache --show-stats || true .upload_failed_job_log_artifacts: &upload_failed_job_log_artifacts | - - | - if [ $CI_JOB_STATUS = "failed" ]; then - python tools/ci/artifacts_handler.py upload --type logs - fi + if [ $CI_JOB_STATUS = "failed" ]; then + python tools/ci/artifacts_handler.py upload --type logs + fi .before_script:minimal: before_script: