qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 32/33] gitlab: don't run CI jobs in forks by default


From: Thomas Huth
Subject: Re: [PATCH v1 32/33] gitlab: don't run CI jobs in forks by default
Date: Mon, 30 May 2022 11:00:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

On 27/05/2022 17.36, Alex Bennée wrote:
From: Daniel P. Berrangé <berrange@redhat.com>

To preserve CI shared runner credits we don't want to run
pipelines on every push.

This sets up the config so that pipelines are never created
for contributors by default. To override this the QEMU_CI
variable can be set to a non-zero value. If set to 1, the
pipeline will be created but all jobs will remain manually
started. The contributor can selectively run jobs that they
care about. If set to 2, the pipeline will be created and
all jobs will immediately start.

This behavior can be controlled using push variables

   git push -o ci.variable=QEMU_CI=1

To make this more convenient define an alias

    git config --local alias.push-ci "push -o ci.variable=QEMU_CI=1"
    git config --local alias.push-ci-now "push -o ci.variable=QEMU_CI=2"

Which lets you run

   git push-ci

to create the pipeline, or

   git push-ci-now

to create and run the pipeline

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220526110705.59952-6-berrange@redhat.com>
[AJB: fix typo, replicate alias tips in ci.rst]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
  docs/devel/ci-jobs.rst.inc | 38 ++++++++++++++++++++++++++++++++++++++
  .gitlab-ci.d/base.yml      |  9 +++++++++
  2 files changed, 47 insertions(+)

Please add:
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/751

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]