Skip to content

Commit cad4caa

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 ea37355 commit cad4caa

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:
@@ -361,6 +363,7 @@ release_sources:
361363
# Run For ux900 Core, without FPU, flash boot mode
362364
run_ux900_flash_xlspike:
363365
stage: run
366+
allow_failure: true
364367
dependencies:
365368
- build_ux900_flash
366369
variables:
@@ -373,6 +376,7 @@ run_ux900_flash_xlspike:
373376
# Run For ux900 Core, without FPU, sd boot mode
374377
run_ux900_sd_xlspike:
375378
stage: run
379+
allow_failure: true
376380
dependencies:
377381
- build_ux900_sd
378382
variables:
@@ -508,11 +512,8 @@ run_ux900fd_sd_xlspike:
508512
<<: *run_linux_sdk_xlspike_job_def
509513

510514
## Job for run qemu
511-
# Run For ux900FD Core, with FPU, flash boot mode
512-
# This ux900fd init process will fail
513515
run_ux900fd_flash_qemu:
514516
stage: run
515-
allow_failure: true
516517
dependencies:
517518
- build_ux900fd_flash
518519
parallel:
@@ -524,8 +525,6 @@ run_ux900fd_flash_qemu:
524525
<<: *run_linux_sdk_qemu_job_def
525526

526527
## Job for run qemu
527-
# Run For ux900FD Core, with FPU, sd boot mode
528-
# This ux900fd init process will fail
529528
run_ux900fd_sd_qemu:
530529
stage: run
531530
allow_failure: true

0 commit comments

Comments
 (0)