From 4ef1a8cc3a5d0b27a16a1943b77a8e73cc89515f 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 b27be4d452..469687e276 100644 --- a/.gitlab/ci/common.yml +++ b/.gitlab/ci/common.yml @@ -172,10 +172,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: