ci: Move upload artifacts execution of build and target_test stages to the after script section

This commit is contained in:
Aleksei Apaseev
2023-11-03 18:09:34 +08:00
committed by Fu Hanxi
parent 21b06f43bf
commit e6a4ad3d55
2 changed files with 9 additions and 4 deletions

View File

@ -172,6 +172,12 @@ variables:
# Show ccache statistics if enabled globally
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
.before_script:minimal:
before_script:
- *common-before_scripts
@ -198,6 +204,7 @@ variables:
.after_script:build:ccache:
after_script:
- *show_ccache_statistics
- *upload_failed_job_log_artifacts
##############################
# Git Strategy Job Templates #

View File

@ -11,6 +11,8 @@
paths:
- .cache/pip
policy: pull
after_script:
- python tools/ci/artifacts_handler.py upload --type logs junit_reports
.pytest_template:
extends:
@ -49,7 +51,6 @@
--parallel-index ${CI_NODE_INDEX:-1}
${PYTEST_EXTRA_FLAGS}
--app-info-filepattern \"list_job_*.txt\"
- python tools/ci/artifacts_handler.py upload --type logs junit_reports
.pytest_examples_dir_template:
extends: .pytest_template
@ -1298,7 +1299,6 @@ pytest_examples_openthread_br:
--parallel-index ${CI_NODE_INDEX:-1}
${PYTEST_EXTRA_FLAGS}
--app-info-filepattern \"list_job_*.txt\"
- python tools/ci/artifacts_handler.py upload --type logs junit_reports
pytest_examples_openthread_bbr:
extends:
@ -1333,7 +1333,6 @@ pytest_examples_openthread_bbr:
--parallel-index ${CI_NODE_INDEX:-1}
${PYTEST_EXTRA_FLAGS}
--app-info-filepattern \"list_job_*.txt\"
- python tools/ci/artifacts_handler.py upload --type logs junit_reports
pytest_examples_openthread_sleep:
extends:
@ -1365,7 +1364,6 @@ pytest_examples_openthread_sleep:
--parallel-index ${CI_NODE_INDEX:-1}
${PYTEST_EXTRA_FLAGS}
--app-info-filepattern \"list_job_*.txt\"
- python tools/ci/artifacts_handler.py upload --type logs junit_reports
pytest_examples_esp32h2_zigbee:
extends: