From nobody Wed May 14 16:27:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1523979906466762.0484797429182; Tue, 17 Apr 2018 08:45:06 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 092377FDF7; Tue, 17 Apr 2018 15:45:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CA21878A1B; Tue, 17 Apr 2018 15:45:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E34774CAAA; Tue, 17 Apr 2018 15:45:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3HFhJT9023607 for ; Tue, 17 Apr 2018 11:43:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 535C22166BB2; Tue, 17 Apr 2018 15:43:19 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB9782166BAE for ; Tue, 17 Apr 2018 15:43:18 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 17 Apr 2018 17:43:12 +0200 Message-Id: <20180417154312.20837-4-abologna@redhat.com> In-Reply-To: <20180417154312.20837-1-abologna@redhat.com> References: <20180417154312.20837-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 3/3] jobs: Drop autotools-mingw-job X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 17 Apr 2018 15:45:05 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Now that we have variants and we've removed all uses of custom environment variables, we can convert all jobs that use the autotools-mingw-job template to the autotools-build-job plus a few overrides. As a consequence of this, mingw32 and mingw64 builds will be split into separate jobs. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 --- jobs/autotools.yaml | 80 ------------------------------------------= ---- jobs/defaults.yaml | 16 ++++++++++ projects/libvirt-glib.yaml | 12 ++++++- projects/libvirt.yaml | 12 ++++++- projects/virt-viewer.yaml | 12 ++++++- 5 files changed, 49 insertions(+), 83 deletions(-) diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml index ac7099f..9868573 100644 --- a/jobs/autotools.yaml +++ b/jobs/autotools.yaml @@ -179,83 +179,3 @@ recipients: '{obj:spam}' notify-every-unstable-build: true send-to-individuals: false - -- job-template: - id: autotools-mingw-job - name: '{name}-{branch}-mingw{variant}' - project-type: matrix - description: '{title} MinGW' - autogen_args: '' - workspace: '{name}-{branch}-mingw{variant}' - child-workspace: '.' - block-downstream: true - block-upstream: true - wrappers: - - timeout: - abort: true - type: absolute - timeout: 90 - write-description: 'Aborted build after 90 minutes' - properties: - - build-discarder: - days-to-keep: 30 - num-to-keep: 1000 - scm: - - git: - url: git://n64.pufty.ci.centos.org/{name}.git - branches: - - origin/{branch} - clean: - after: true - skip-tag: true - wipe-workspace: false - triggers: - - reverse: - jobs: '{obj:parent_jobs}' - - pollscm: - cron: "H/20 * * * *" - axes: - - axis: - name: systems - type: slave - values: '{obj:machines}' - builders: - - shell: | - {global_env} - {local_env} - # The MinGW build needs to use the MinGW compiler toolchain, - # while $CC is pointing to the native toolchain, so we have - # to unset it here. - export CC=3D - - export VIRT_PREFIX=3D"$VIRT_PREFIX/i686-w64-mingw32/sys-root/min= gw" - export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" - export PKG_CONFIG_LIBDIR=3D"/usr/i686-w64-mingw32/sys-root/mingw= /lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig" - - mkdir -p build32 - cd build32 - - ../autogen.sh --prefix=3D$VIRT_PREFIX --host=3Di686-w64-mingw32 - $MAKE -j{smp} - $MAKE -j{smp} install - - shell: | - {global_env} - {local_env} - # See above - export CC=3D - - export VIRT_PREFIX=3D"$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/m= ingw" - export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" - export PKG_CONFIG_LIBDIR=3D"/usr/x86_64-w64-mingw32/sys-root/min= gw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig" - - mkdir -p build64 - cd build64 - - ../autogen.sh --prefix=3D$VIRT_PREFIX --host=3Dx86_64-w64-mingw32 - $MAKE -j{smp} - $MAKE -j{smp} install - publishers: - - email: - recipients: '{obj:spam}' - notify-every-unstable-build: true - send-to-individuals: false diff --git a/jobs/defaults.yaml b/jobs/defaults.yaml index eef92e8..5527546 100644 --- a/jobs/defaults.yaml +++ b/jobs/defaults.yaml @@ -6,5 +6,21 @@ node: libvirt global_env: | local_env: | + mingw32_local_env: | + # The MinGW build needs to use the MinGW compiler toolchain, + # while $CC is pointing to the native toolchain, so we have + # to unset it here. + export CC=3D + export VIRT_PREFIX=3D"$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw" + export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" + export PKG_CONFIG_LIBDIR=3D"/usr/i686-w64-mingw32/sys-root/mingw/lib= /pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig" + mingw32_autogen_args: --host=3Di686-w64-mingw32 + mingw64_local_env: | + # See above + export CC=3D + export VIRT_PREFIX=3D"$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw" + export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" + export PKG_CONFIG_LIBDIR=3D"/usr/x86_64-w64-mingw32/sys-root/mingw/l= ib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig" + mingw64_autogen_args: --host=3Dx86_64-w64-mingw32 smp: 3 spam: ymankad@redhat.com libvirt-ci@redhat.com diff --git a/projects/libvirt-glib.yaml b/projects/libvirt-glib.yaml index 3873c40..c56e5d3 100644 --- a/projects/libvirt-glib.yaml +++ b/projects/libvirt-glib.yaml @@ -26,7 +26,17 @@ - libvirt-fedora-26 - libvirt-fedora-27 - libvirt-fedora-rawhide - - autotools-mingw-job: + - autotools-build-job: + parent_jobs: + variant: -mingw32 + local_env: '{mingw32_local_env}' + autogen_args: '{mingw32_autogen_args}' + machines: + - libvirt-fedora-rawhide + - autotools-build-job: parent_jobs: + variant: -mingw64 + local_env: '{mingw64_local_env}' + autogen_args: '{mingw64_autogen_args}' machines: - libvirt-fedora-rawhide diff --git a/projects/libvirt.yaml b/projects/libvirt.yaml index 13f39f9..bff9ad9 100644 --- a/projects/libvirt.yaml +++ b/projects/libvirt.yaml @@ -39,7 +39,17 @@ - libvirt-fedora-26 - libvirt-fedora-27 - libvirt-fedora-rawhide - - autotools-mingw-job: + - autotools-build-job: + parent_jobs: + variant: -mingw32 + local_env: '{mingw32_local_env}' + autogen_args: '{mingw32_autogen_args}' + machines: + - libvirt-fedora-rawhide + - autotools-build-job: parent_jobs: + variant: -mingw64 + local_env: '{mingw64_local_env}' + autogen_args: '{mingw64_autogen_args}' machines: - libvirt-fedora-rawhide diff --git a/projects/virt-viewer.yaml b/projects/virt-viewer.yaml index 2d8a6f9..5a882bc 100644 --- a/projects/virt-viewer.yaml +++ b/projects/virt-viewer.yaml @@ -25,7 +25,17 @@ - libvirt-fedora-26 - libvirt-fedora-27 - libvirt-fedora-rawhide - - autotools-mingw-job: + - autotools-build-job: + parent_jobs: + variant: -mingw32 + local_env: '{mingw32_local_env}' + autogen_args: '{mingw32_autogen_args}' + machines: + - libvirt-fedora-rawhide + - autotools-build-job: parent_jobs: + variant: -mingw64 + local_env: '{mingw64_local_env}' + autogen_args: '{mingw64_autogen_args}' machines: - libvirt-fedora-rawhide --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list