summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-04-07 08:35:36 +0200
committerGuido Günther <agx@sigxcpu.org>2014-04-07 08:35:36 +0200
commit4194736c092119acba58625b9fac3384472167fd (patch)
treee269fe4f92e8921cf1417f4af08a58530f9c6d39
Add initial build jobs
-rw-r--r--defaults.yaml3
-rw-r--r--jobtemplates.yaml57
-rw-r--r--libplanfahr.yaml8
3 files changed, 68 insertions, 0 deletions
diff --git a/defaults.yaml b/defaults.yaml
new file mode 100644
index 0000000..02925c2
--- /dev/null
+++ b/defaults.yaml
@@ -0,0 +1,3 @@
+- defaults:
+ name: global
+ description: 'Managed by jenkins job builder. Do not edit this job through the web!'
diff --git a/jobtemplates.yaml b/jobtemplates.yaml
new file mode 100644
index 0000000..93eae5c
--- /dev/null
+++ b/jobtemplates.yaml
@@ -0,0 +1,57 @@
+- job-template:
+ name: '{name}-clone'
+ defaults: global
+ scm:
+ - git:
+ url: 'git://honk.sigxcpu.org/git/{name}.git'
+ branches:
+ - master
+ basedir: '{name}'
+ shallow-clone: True
+ triggers:
+ - pollscm: "* * * * *"
+ publishers:
+ - trigger:
+ project: '{name}-{buildtype}-build'
+ - email:
+ recipients: '{mail-to}'
+
+- job-template:
+ name: '{name}-autotools-build'
+ defaults: global
+ project-type: freestyle
+ disabled: false
+ display-name: '{name} build'
+ concurrent: true
+ workspace: 'jobs/{name}-clone'
+ quiet-period: 0
+ builders:
+ - shell: |
+ cd workspace/{name}
+ if [ -x ./configure ]; then
+ ./configure
+ else
+ ./autogen.sh
+ fi
+ make
+ publishers:
+ - trigger:
+ project: '{name}-autotools-check'
+ - email:
+ recipients: '{mail-to}'
+
+- job-template:
+ name: '{name}-autotools-check'
+ defaults: global
+ project-type: freestyle
+ disabled: false
+ display-name: '{name} check'
+ concurrent: true
+ workspace: 'jobs/{name}-clone'
+ quiet-period: 0
+ builders:
+ - shell: |
+ cd workspace/{name}
+ make check
+ - email:
+ recipients: '{mail-to}'
diff --git a/libplanfahr.yaml b/libplanfahr.yaml
new file mode 100644
index 0000000..b11eeda
--- /dev/null
+++ b/libplanfahr.yaml
@@ -0,0 +1,8 @@
+- project:
+ name: libplanfahr
+ buildtype: autotools
+ mail-to: agx@sigxcpu.org
+ jobs:
+ - '{name}-clone'
+ - '{name}-autotools-build'
+ - '{name}-autotools-check'