mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
33 lines
860 B
YAML
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
|