[jenkins-ci PATCH 5/5] jobs: Include $PATH definition in {global_env}

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

 



$PATH is generic enough that it shouldn't be limited to the
osinfo-db project.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 jobs/defaults.yaml      | 1 +
 projects/osinfo-db.yaml | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/jobs/defaults.yaml b/jobs/defaults.yaml
index 86e7100..7b2c040 100644
--- a/jobs/defaults.yaml
+++ b/jobs/defaults.yaml
@@ -9,6 +9,7 @@
       if [ "$unamestr" = 'FreeBSD' ]; then
           MAKE='gmake'
       fi
+      export PATH=$VIRT_PREFIX/bin:$PATH
     env: |
     smp: 3
     spam: ymankad@xxxxxxxxxx libvirt-ci@xxxxxxxxxx
diff --git a/projects/osinfo-db.yaml b/projects/osinfo-db.yaml
index 95ad845..2a9cab2 100644
--- a/projects/osinfo-db.yaml
+++ b/projects/osinfo-db.yaml
@@ -15,7 +15,6 @@
       - generic-build-job:
           parent_jobs: 'osinfo-db-tools-master-build'
           command: |
-            export PATH=$VIRT_PREFIX/bin:$PATH
             $MAKE -j{smp} all
             $MAKE install OSINFO_DB_TARGET="--system"
       - generic-rpm-job:
@@ -26,7 +25,6 @@
             - libvirt-fedora-26
             - libvirt-fedora-rawhide
           command: |
-            export PATH=$VIRT_PREFIX/bin:$PATH
             rm -f *.tar.xz
             $MAKE osinfo-db.spec
             perl -i -p -e 's/BuildRequires: osinfo-db-tools.*//' osinfo-db.spec
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux