]> git.proxmox.com Git - mirror_qemu.git/commit
gitlab: allow overriding name of the upstream repository
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Jun 2023 16:40:15 +0000 (17:40 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Jun 2023 06:58:02 +0000 (08:58 +0200)
commit1ddd2ff9cd873dd7d634a0b6296e91c6583b47e3
tree136d82c2c1c30af1896a7370f49f23432cfbde05
parentd4c7a56539d0bdb6fccf60af94d528613cbc7c4b
gitlab: allow overriding name of the upstream repository

The CI rules have special logic for what happens in upstream. To enable
contributors who modify CI rules to test this logic, however, they need
to be able to override which repo is considered upstream. This
introduces the 'QEMU_CI_UPSTREAM' variable

  git push gitlab <branch> -o ci.variable=QEMU_CI_UPSTREAM=berrange

to make it look as if my namespace is the actual upstream. Namespace in
this context refers to the path fragment in gitlab URLs that is above
the repository. Typically this will be the contributor's gitlab login
name.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230608164018.2520330-3-berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
.gitlab-ci.d/base.yml
docs/devel/ci-jobs.rst.inc