[jenkins-ci PATCH 5/5] Add project for CI testing libvirt-jenkins-ci

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

 



A build task will validate that the dockerfile generator is
able to create output, and a syntax-check task will run flake8

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 guests/playbooks/build/jobs/defaults.yml          |  2 ++
 .../build/projects/libvirt-jenkins-ci.yml         | 15 +++++++++++++++
 guests/vars/projects/libvirt-jenkins-ci.yml       |  4 ++++
 jobs/defaults.yaml                                |  2 ++
 projects/libvirt-jenkins-ci.yaml                  | 14 ++++++++++++++
 5 files changed, 37 insertions(+)
 create mode 100644 guests/playbooks/build/projects/libvirt-jenkins-ci.yml
 create mode 100644 guests/vars/projects/libvirt-jenkins-ci.yml
 create mode 100644 projects/libvirt-jenkins-ci.yaml

diff --git a/guests/playbooks/build/jobs/defaults.yml b/guests/playbooks/build/jobs/defaults.yml
index 1c241fe..73cef08 100644
--- a/guests/playbooks/build/jobs/defaults.yml
+++ b/guests/playbooks/build/jobs/defaults.yml
@@ -52,6 +52,8 @@ git_urls:
     default: https://github.com/libvirt/libvirt-go-xml.git
   libvirt-go:
     default: https://github.com/libvirt/libvirt-go.git
+  libvirt-jenkins-ci:
+    default: https://github.com/libvirt/libvirt-jenkins-ci.git
   libvirt-ocaml:
     default: https://github.com/libvirt/libvirt-ocaml.git
   libvirt-perl:
diff --git a/guests/playbooks/build/projects/libvirt-jenkins-ci.yml b/guests/playbooks/build/projects/libvirt-jenkins-ci.yml
new file mode 100644
index 0000000..0314009
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-jenkins-ci.yml
@@ -0,0 +1,15 @@
+---
+- set_fact:
+    name: libvirt-jenkins-ci
+    machines: '{{ rpm_machines }}'
+    git_url: '{{ git_urls["libvirt-jenkins-ci"][git_remote] }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/generic-build-job.yml'
+  vars:
+    command: |
+      $MAKE all
+- include: '{{ playbook_base }}/jobs/generic-syntax-check-job.yml'
+  vars:
+    command: |
+      $MAKE syntax-check
diff --git a/guests/vars/projects/libvirt-jenkins-ci.yml b/guests/vars/projects/libvirt-jenkins-ci.yml
new file mode 100644
index 0000000..e8c6fa5
--- /dev/null
+++ b/guests/vars/projects/libvirt-jenkins-ci.yml
@@ -0,0 +1,4 @@
+---
+packages:
+  - python3
+  - python3-flake8
diff --git a/jobs/defaults.yaml b/jobs/defaults.yaml
index 6b39724..19abb78 100644
--- a/jobs/defaults.yaml
+++ b/jobs/defaults.yaml
@@ -51,6 +51,8 @@
         default: https://github.com/libvirt/libvirt-go-xml.git
       libvirt-go:
         default: https://github.com/libvirt/libvirt-go.git
+      libvirt-jenkins-ci:
+        default: https://github.com/libvirt/libvirt-jenkins-ci.git
       libvirt-ocaml:
         default: https://github.com/libvirt/libvirt-ocaml.git
       libvirt-perl:
diff --git a/projects/libvirt-jenkins-ci.yaml b/projects/libvirt-jenkins-ci.yaml
new file mode 100644
index 0000000..04d13c4
--- /dev/null
+++ b/projects/libvirt-jenkins-ci.yaml
@@ -0,0 +1,14 @@
+
+- project:
+    name: libvirt-jenkins-ci
+    machines: '{rpm_machines}'
+    title: libvirt Jenkins CI
+    git_url: '{git_urls[libvirt-jenkins-ci][default]}'
+    jobs:
+      - generic-build-job:
+          command: |
+            $MAKE all
+      - generic-syntax-check-job:
+          parent_jobs: 'libvirt-jenkins-ci-build'
+          command: |
+            $MAKE syntax-check
-- 
2.20.1


[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