Skip to content

Commit 9eaf835

Browse files
committed
ci: enable ci fail for xlspike run and manual job
see https://docs.gitlab.com/ci/jobs/job_control/#types-of-manual-jobs In optional manual jobs: allow_failure is true, which is the default setting for jobs that have when: manual defined outside of rules. The status does not contribute to the overall pipeline status. A pipeline can succeed even if all of its manual jobs fail. In blocking manual jobs: allow_failure is false, which is the default setting for jobs that have when: manual defined inside rules. The pipeline stops at the stage where the job is defined. To let the pipeline continue running, run the manual job. Merge requests in projects with Pipelines must succeed enabled can’t be merged with a blocked pipeline. The pipeline shows a status of blocked. Signed-off-by: Huaqi Fang <[email protected]>
1 parent 3dfdf9e commit 9eaf835

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ cache:
266266
# Manual job template
267267
.build_linux_sdk_manual_template: &build_linux_sdk_manual_job_def
268268
extends: .job_rules
269+
# https://docs.gitlab.com/ci/jobs/job_control/#types-of-manual-jobs
270+
allow_failure: true
269271
artifacts:
270272
name: "bootimages-${SOC}-${CORE}-${BOOT_MODE}-${CI_COMMIT_SHA::8}"
271273
paths:
@@ -359,6 +361,7 @@ release_sources:
359361
# Run For ux900 Core, without FPU, flash boot mode
360362
run_ux900_flash_xlspike:
361363
stage: run
364+
allow_failure: true
362365
dependencies:
363366
- build_ux900_flash
364367
variables:
@@ -371,6 +374,7 @@ run_ux900_flash_xlspike:
371374
# Run For ux900 Core, without FPU, sd boot mode
372375
run_ux900_sd_xlspike:
373376
stage: run
377+
allow_failure: true
374378
dependencies:
375379
- build_ux900_sd
376380
variables:
@@ -490,11 +494,8 @@ run_ux900fd_sd_xlspike:
490494
<<: *run_linux_sdk_xlspike_job_def
491495

492496
## Job for run qemu
493-
# Run For ux900FD Core, with FPU, flash boot mode
494-
# This ux900fd init process will fail
495497
run_ux900fd_flash_qemu:
496498
stage: run
497-
allow_failure: true
498499
dependencies:
499500
- build_ux900fd_flash
500501
parallel:
@@ -506,8 +507,6 @@ run_ux900fd_flash_qemu:
506507
<<: *run_linux_sdk_qemu_job_def
507508

508509
## Job for run qemu
509-
# Run For ux900FD Core, with FPU, sd boot mode
510-
# This ux900fd init process will fail
511510
run_ux900fd_sd_qemu:
512511
stage: run
513512
allow_failure: true

0 commit comments

Comments
 (0)