Files
xen/.gitlab-ci.yml
T
Victor Lira 485ab1b5db automation: edit pipeline to prevent running non-selected jobs
Filtering jobs using the selected jobs regex is missing for
qemu-export + yocto jobs when running regular pipelines and eclair jobs
when running scheduled pipelines.

First, set a default value for the selected jobs regex to remove the
need to always check if the variable is empty.

Then add the missing rules to filter out those jobs.

Signed-off-by: Victor Lira <victorm.lira@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-12-12 14:41:51 -08:00

33 lines
860 B
YAML

variables:
XEN_REGISTRY: registry.gitlab.com/xen-project/xen
SELECTED_JOBS_ONLY:
description: "Regex to select only some jobs, must be enclosed with /. For example /job1|job2/"
value: "/.*/"
workflow:
name: "$CI_PIPELINE_SCHEDULE_DESCRIPTION"
rules:
- if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
when: never
- when: always
stages:
- containers
- analyze
- build
- test
include:
- local: 'automation/gitlab-ci/containers.yaml'
rules:
- if: $XEN_CI_REBUILD_CONTAINERS
- local: 'automation/gitlab-ci/analyze.yaml'
rules:
- if: $XEN_CI_REBUILD_CONTAINERS == null
- local: 'automation/gitlab-ci/build.yaml'
rules:
- if: $XEN_CI_REBUILD_CONTAINERS == null
- local: 'automation/gitlab-ci/test.yaml'
rules:
- if: $XEN_CI_REBUILD_CONTAINERS == null