ci: add redundant job to ensure 'retry_failed_jobs' job is not skipped

This commit is contained in:
Aleksei Apaseev 2024-08-12 11:22:30 +08:00
parent eff2e4eddd
commit ae4687e43e
2 changed files with 14 additions and 1 deletions

View File

@ -168,3 +168,15 @@ pipeline_variables:
- pipeline.env
expire_in: 1 week
when: always
redundant_pass_job:
stage: pre_check
tags: [shiny, fast_run]
image: $ESP_ENV_IMAGE
dependencies: null
before_script: []
cache: []
extends: []
script:
- echo "This job is redundant to ensure the 'retry_failed_jobs' job can exist and not be skipped"
when: always

View File

@ -1,6 +1,7 @@
retry_failed_jobs:
stage: retry_failed_jobs
tags: [shiny, fast_run]
allow_failure: true
image: $ESP_ENV_IMAGE
dependencies: null
before_script: []
@ -11,4 +12,4 @@ retry_failed_jobs:
- python tools/ci/python_packages/gitlab_api.py retry_failed_jobs $CI_MERGE_REQUEST_PROJECT_ID --pipeline_id $CI_PIPELINE_ID
when: manual
needs:
- generate_failed_jobs_report
- redundant_pass_job