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

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

 



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

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 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

--
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]