]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ci: Remove tag dependency for build-previous-qemu
authorPeter Xu <peterx@redhat.com>
Wed, 7 Feb 2024 00:54:02 +0000 (08:54 +0800)
committerPeter Xu <peterx@redhat.com>
Wed, 7 Feb 2024 02:51:27 +0000 (10:51 +0800)
The new build-previous-qemu job relies on QEMU release tag being present,
while that may not be always true for personal git repositories since by
default tag is not pushed.  The job can fail on those CI kicks, as reported
by Peter Maydell.

Fix it by fetching the tags remotely from the official repository, as
suggested by Dan.

[1] https://lore.kernel.org/r/ZcC9ScKJ7VvqektA@redhat.com

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Suggested-by: "Daniel P. Berrangé" <berrange@redhat.com>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Link: https://lore.kernel.org/r/20240207005403.242235-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
.gitlab-ci.d/buildtest.yml

index 79bbc8585b0f7d240e18305405034a96f8ee755f..cfe95c1b1706787d88743698aee0421db28d953c 100644 (file)
@@ -189,6 +189,8 @@ build-previous-qemu:
     TARGETS: x86_64-softmmu aarch64-softmmu
   before_script:
     - export QEMU_PREV_VERSION="$(sed 's/\([0-9.]*\)\.[0-9]*/v\1.0/' VERSION)"
+    - git remote add upstream https://gitlab.com/qemu-project/qemu
+    - git fetch upstream $QEMU_PREV_VERSION
     - git checkout $QEMU_PREV_VERSION
   after_script:
     - mv build build-previous