[libvirt] [PATCH jenkins-ci 06/19] jobs: add a template for Perl Module::Build

Daniel P. Berrange berrange at redhat.com
Thu Aug 4 14:52:15 UTC 2016


Add a template for projects using the Perl Module::Build
framework

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 jobs/perl-modulebuild.yaml | 104 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)
 create mode 100644 jobs/perl-modulebuild.yaml

diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
new file mode 100644
index 0000000..acef9e2
--- /dev/null
+++ b/jobs/perl-modulebuild.yaml
@@ -0,0 +1,104 @@
+
+- job-template:
+    id: perl-modulebuild-build-job
+    name: '{name}-build'
+    project-type: matrix
+    description: '{title} Build'
+    autogen_args: ''
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    scm:
+      - git:
+          url: git://n64.pufty.ci.centos.org/{name}.git
+          branches:
+            - origin/master
+          clean: true
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+      - pollscm:
+          cron: "H/20 * * * *"
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          perl Build.PL install_base="$VIRT_PREFIX"
+          perl Build manifest
+          perl Build
+          perl Build install
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
+
+
+- job-template:
+    id: perl-modulebuild-test-job
+    name: '{name}-test'
+    project-type: matrix
+    description: '{title} Test'
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          perl Build test
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
+
+- job-template:
+    id: perl-modulebuild-rpm-job
+    name: '{name}-rpm'
+    project-type: matrix
+    description: '{title} RPM'
+    archive_format: gz
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          sed -i -e 's/BuildRequires: perl-Sys-Virt.*//' *.spec
+          rm -f *.tar.{archive_format}
+          perl Build dist
+          rpmbuild -ta *.tar.{archive_format}
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
-- 
2.7.4




More information about the libvir-list mailing list