[libvirt] [jenkins-ci PATCH 2/2] projects: Define archive_format for osinfo-db

Andrea Bolognani abologna at redhat.com
Thu May 10 15:26:33 UTC 2018


Follow the standard templating behavior instead of needlessly
hardcoding information in the script.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 projects/osinfo-db.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/projects/osinfo-db.yaml b/projects/osinfo-db.yaml
index 0d0a972..9e22c93 100644
--- a/projects/osinfo-db.yaml
+++ b/projects/osinfo-db.yaml
@@ -3,6 +3,7 @@
     name: osinfo-db
     machines: '{all_machines}'
     title: osinfo database
+    archive_format: xz
     jobs:
       - generic-build-job:
           parent_jobs: 'osinfo-db-tools-master-build'
@@ -17,7 +18,7 @@
           parent_jobs: 'osinfo-db-master-check'
           machines: '{rpm_machines}'
           command: |
-            rm -f *.tar.xz
+            rm -f *.tar.{archive_format}
             $MAKE osinfo-db.spec
             perl -i -p -e 's/BuildRequires: osinfo-db-tools.*//' osinfo-db.spec
             $MAKE rpm
-- 
2.17.0




More information about the libvir-list mailing list