From nobody Thu May 15 08:59:01 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1510943188593470.5179331713621; Fri, 17 Nov 2017 10:26:28 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D336681DE8; Fri, 17 Nov 2017 18:26:26 +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 A7F159652D; Fri, 17 Nov 2017 18:26:26 +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 6DF704A469; Fri, 17 Nov 2017 18:26:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id vAHIQN40030955 for ; Fri, 17 Nov 2017 13:26:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id E0BEC83A77; Fri, 17 Nov 2017 18:26:23 +0000 (UTC) Received: from inaba.usersys.redhat.com (ovpn-204-27.brq.redhat.com [10.40.204.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3F42F83A95 for ; Fri, 17 Nov 2017 18:26:23 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Fri, 17 Nov 2017 19:26:11 +0100 Message-Id: <20171117182612.16109-5-abologna@redhat.com> In-Reply-To: <20171117182612.16109-1-abologna@redhat.com> References: <20171117182612.16109-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 4/5] jobs: Include {env} everywhere 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 17 Nov 2017 18:26:27 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Any job might need to define a custom environment, so it should be included everywhere to make it possible. A side-effect of this change is that $OSINFO_SYSTEM_DIR will be defined in libosinfo-master-rpm's environment, and the job should stop failing. Signed-off-by: Andrea Bolognani --- jobs/autotools.yaml | 5 +++++ jobs/generic.yaml | 4 ++++ jobs/go.yaml | 2 ++ jobs/perl-makemaker.yaml | 3 +++ jobs/perl-modulebuild.yaml | 3 +++ jobs/python-distutils.yaml | 3 +++ 6 files changed, 20 insertions(+) diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml index f6a2af0..d71d0ce 100644 --- a/jobs/autotools.yaml +++ b/jobs/autotools.yaml @@ -41,6 +41,7 @@ builders: - shell: | {global_env} + {env} mkdir build cd build ../autogen.sh --prefix=3D$VIRT_PREFIX {autogen_args} @@ -82,6 +83,7 @@ builders: - shell: | {global_env} + {env} cd build $MAKE -j{smp} syntax-check publishers: @@ -164,6 +166,7 @@ builders: - shell: | {global_env} + {env} cd build sed -i -e 's/BuildRequires: osinfo-db.*//' {name}.spec sed -i -e 's/BuildRequires: libvirt.*devel.*//' {name}.spec @@ -219,6 +222,7 @@ builders: - shell: | {global_env} + {env} mkdir -p build32 cd build32 =20 @@ -230,6 +234,7 @@ $MAKE -j{smp} install - shell: | {global_env} + {env} mkdir -p build64 cd build64 =20 diff --git a/jobs/generic.yaml b/jobs/generic.yaml index 20ef5da..9b4569f 100644 --- a/jobs/generic.yaml +++ b/jobs/generic.yaml @@ -41,6 +41,7 @@ builders: - shell: | {global_env} + {env} {command} publishers: - email: @@ -78,6 +79,7 @@ builders: - shell: | {global_env} + {env} {command} publishers: - email: @@ -115,6 +117,7 @@ builders: - shell: | {global_env} + {env} {command} publishers: - email: @@ -153,6 +156,7 @@ builders: - shell: | {global_env} + {env} {command} publishers: - email: diff --git a/jobs/go.yaml b/jobs/go.yaml index 8764395..22d3459 100644 --- a/jobs/go.yaml +++ b/jobs/go.yaml @@ -41,6 +41,7 @@ builders: - shell: | {global_env} + {env} go build -v publishers: - email: @@ -78,6 +79,7 @@ builders: - shell: | {global_env} + {env} go test -tags api publishers: - email: diff --git a/jobs/perl-makemaker.yaml b/jobs/perl-makemaker.yaml index 930d4ee..ea05b61 100644 --- a/jobs/perl-makemaker.yaml +++ b/jobs/perl-makemaker.yaml @@ -42,6 +42,7 @@ - shell: | perl Makefile.PL PREFIX=3D"$VIRT_PREFIX" {global_env} + {env} $MAKE $MAKE -j{smp} install $MAKE -j{smp} manifest @@ -83,6 +84,7 @@ builders: - shell: | {global_env} + {env} $MAKE -j{smp} test {test_args} publishers: - email: @@ -121,6 +123,7 @@ builders: - shell: | {global_env} + {env} sed -i -e 's/BuildRequires: *perl-Sys-Virt.*//' *.spec sed -i -e 's/BuildRequires: *libvirt.*devel.*//' *.spec rm -f *.tar.{archive_format} diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml index 188b153..e556237 100644 --- a/jobs/perl-modulebuild.yaml +++ b/jobs/perl-modulebuild.yaml @@ -41,6 +41,7 @@ builders: - shell: | {global_env} + {env} perl Build.PL install_base=3D"$VIRT_PREFIX" perl Build perl Build manifest @@ -82,6 +83,7 @@ builders: - shell: | {global_env} + {env} perl Build test publishers: - email: @@ -120,6 +122,7 @@ builders: - shell: | {global_env} + {env} sed -i -e 's/BuildRequires: *perl-Sys-Virt.*//' *.spec sed -i -e 's/BuildRequires: *perl(Sys::Virt).*//' *.spec sed -i -e 's/BuildRequires: *libvirt.*devel.*//' *.spec diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml index b0e3f5f..fc969ad 100644 --- a/jobs/python-distutils.yaml +++ b/jobs/python-distutils.yaml @@ -41,6 +41,7 @@ builders: - shell: | {global_env} + {env} {command_pre_build} python2 setup.py build python2 setup.py install --prefix=3D$VIRT_PREFIX @@ -81,6 +82,7 @@ builders: - shell: | {global_env} + {env} python2 setup.py test publishers: - email: @@ -118,6 +120,7 @@ builders: - shell: | {global_env} + {env} sed -i -e 's/BuildRequires: libvirt.*devel.*//' *.spec.in python2 setup.py rpm publishers: --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list