gitlab: introduce a common base job template
commit6a0e7ea7b87cfa684bbcebaebafaef14c29a8872
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 May 2022 15:35:58 +0000 (27 16:35 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 1 Jun 2022 14:47:43 +0000 (1 15:47 +0100)
treee9605da014590e787d7acc0a664377b8b8b6725d
parentf21db42631ae1f3feaa3bf94edd9c06c24b4aeb6
gitlab: introduce a common base job template

Currently job rules are spread across the various templates
and jobs, making it hard to understand exactly what runs in
what scenario. This leads to inconsistency in the rules and
increased maint burden.

The intent is that we introduce a common '.base_job_template'
which will have a general purpose 'rules:' block. No other
template or job should define 'rules:', but instead they must
rely on the inherited rules. To allow behaviour to be tweaked,
rules will be influenced by a number of variables with the
naming scheme 'QEMU_JOB_nnnn'.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220526110705.59952-2-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220527153603.887929-29-alex.bennee@linaro.org>
.gitlab-ci.d/base.yml [new file with mode: 0644]
.gitlab-ci.d/qemu-project.yml
docs/devel/ci-jobs.rst.inc