This imports the current settings for "ceph-package" as YAML.
This is an import of the job previously defined in Jenkins' own data
store (ie /home2/jenkins/jobs/ceph-package/config.xml)
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
--- /dev/null
+#!/bin/sh
+for dir in * ; do
+ echo $dir
+ arch=$(echo $dir | cut -d',' -f1 | cut -d'=' -f2)
+ dist=$(echo $dir | cut -d',' -f2 | cut -d'=' -f2 | cut -d'-' -f1)
+ echo "arch = $arch, dist = $dist"
+ if [ -d $dir/dist/rpm ] ; then
+ echo "rpms"
+ fi
+ if [ -d $dir/dist/debian ] ; then
+ echo "debian"
+ fi
+done
--- /dev/null
+- job:
+ name: ceph-build
+ defaults: global
+ disabled: false
+ display-name: 'ceph-build'
+ node: package
+ concurrent: false
+ block-downstream: false
+ block-upstream: false
+ logrotate:
+ daysToKeep: -1
+ numToKeep: 20
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ execution-strategy:
+ combination-filter: |
+ (Arch=="x86_64") || (Arch=="i386" && (Distro=="wheezy-pbuild" || Distro=="precise-pbuild"))
+
+ axes:
+ - axis:
+ type: label-expression
+ name: Arch
+ values:
+ - x86_64
+ - i386
+ - axis:
+ type: label-expression
+ name: Distro
+ values:
+ - squeeze-pbuild
+ - wheezy-pbuild
+ - precise-pbuild
+ - trusty-pbuild
+ - centos6.3
+ - centos6.4
+ - centos6.5
+ - centos7
+ - rhel6.3
+ - rhel6.4
+ - rhel6.5
+ - rhel7
+ - fedora20
+
+ builders:
+
+ # "Clean up any prior stuff"
+ - shell: 'rm -rf Arch=* 2>/dev/null; true'
+
+ - copyartifact:
+ project: ceph-build
+ filter: 'dist/**'
+ which-build: last-successful
+
+ - shell:
+ !include-raw ../../build/build