README.md 1.1 KB
Newer Older
Guido Gunther's avatar
Guido Gunther committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
deb-build-jobs
==============
Jenkins job definitions for building Debian packages. To add new jobs
simple append a new job definition to *jobs.yaml*.

Job definitions
===============
A job definition looks like:

     <pkg>:
       url: <giturl>
       archs: <list of architectures>
       branch: <gitbranch>

e.g.

    virt-what:
      url: https://anonscm.debian.org/git/pkg-libvirt/virt-what.git
      archs: ['aarch64', 'armhf']
      branch: 'debian/sid'

Only the *url* parameter is mandatory otherwise defaults will be used.

How it works
============
The job definitions are read by a seed job in Jenkins on commit to
update the job definitions for building Debian packages. The seed jobs
reads *jobs.groovy* (using [Jenkins Job DSL][1] which in turn
processes *jobs.yaml* containing the actual job definitions. When jobs
are removed from *jobs.yaml* they get disabled in Jenkins automatically.

Note that if you change the groovy script itself you need to approve these
changes using Jenkins in process script approval
(https://yourjenkins/scriptApproval/).

[1]: https://wiki.jenkins.io/display/JENKINS/Job+DSL+Plugin