summaryrefslogtreecommitdiffstats
path: root/job-cfg/reproducible.yaml
blob: 9fdc7778e2f1fc69ff82fd2e0df5a1371d68d37b (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
- defaults:
    name: reproducible
    project-type: freestyle
    triggers:
      - timed: '{my_timed}'
    properties:
      - sidebar:
          url: https://jenkins.debian.net/userContent/about.html
          text: About jenkins.debian.net
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar:
          url: https://jenkins.debian.net/view/reproducible
          text: reproducible builds jobs
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar:
          url: http://www.profitbricks.co.uk
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
    description: '{my_description}<br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/reproducible.yaml">reproducible.yaml</a>.<br>Results are available at <a href="https://reproducible.debian.net/">https://reproducible.debian.net</a>.'
    logrotate:
      daysToKeep: 90
      numToKeep: 30
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
    publishers:
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'
      - email:
          recipients: '{my_recipients}'

- defaults:
    name: reproducible_notes
    project-type: freestyle
    triggers:
      - timed: '{my_timed}'
      - pollscm: '*/6 * * * *'
    properties:
      - sidebar:
          url: https://jenkins.debian.net/userContent/about.html
          text: About jenkins.debian.net
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar:
          url: https://jenkins.debian.net/view/reproducible
          text: reproducible builds jobs
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar:
          url: http://www.profitbricks.co.uk
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
    description: '{my_description}<br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/reproducible.yaml">reproducible.yaml</a>.<br>Results are available at <a href="https://reproducible.debian.net/">https://reproducible.debian.net</a>.'
    logrotate:
      daysToKeep: 90
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
      - shell: '/srv/jenkins/bin/reproducible_notes.py'
    publishers:
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'
      - email:
          recipients: '{my_recipients}'
    scm:
      - git:
          url: '{my_gitrepo}'
          branches:
            - master

- defaults:
    name: reproducible_builder
    project-type: freestyle
    triggers:
      - timed: '{my_timed}'
    properties:
      - sidebar:
          url: https://jenkins.debian.net/userContent/about.html
          text: About jenkins.debian.net
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar:
          url: https://jenkins.debian.net/view/reproducible
          text: reproducible builds jobs
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar:
          url: http://www.profitbricks.co.uk
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
      - priority:
          job-prio: '150'
      - throttle:
          max-total: 3
          max-per-node: 3
          enabled: true
          option: category
          categories:
            - reproducible
    description: '{my_description}<br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/reproducible.yaml">reproducible.yaml</a>.<br>Results are available at <a href="https://reproducible.debian.net/">https://reproducible.debian.net</a>.'
    wrappers:
      - timeout:
          timeout: 1560
    logrotate:
      daysToKeep: 4
      numToKeep: 400
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
    publishers:
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'
      - email:
          recipients: '{my_recipients}'
          notify-every-unstable-build: false

- defaults:
    name: reproducible_other_projects
    project-type: freestyle
    triggers:
      - timed: '{my_timed}'
    properties:
      - sidebar:
          url: https://jenkins.debian.net/userContent/about.html
          text: About jenkins.debian.net
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar:
          url: https://jenkins.debian.net/view/reproducible
          text: reproducible builds jobs
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar:
          url: http://www.profitbricks.co.uk
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
    description: '{my_description}<br>Job configuration source is <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/job-cfg/reproducible.yaml">reproducible.yaml</a>.<br>Results are available at <a href="https://reproducible.debian.net/">https://reproducible.debian.net</a>.'
    logrotate:
      daysToKeep: 90
      numToKeep: 30
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
    publishers:
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'
      - email:
          recipients: '{my_recipients}'

- job-template:
    defaults: reproducible
    name: '{name}_maintenance'

- job-template:
    defaults: reproducible
    name: '{name}_setup_pbuilder_unstable'

- job-template:
    defaults: reproducible
    name: '{name}_setup_pbuilder_testing'

- job-template:
    defaults: reproducible
    name: '{name}_setup_pbuilder_experimental'

- job-template:
    defaults: reproducible
    name: '{name}_setup_schroot_unstable_debbindiff'

- job-template:
    defaults: reproducible
    name: '{name}_setup_schroot_testing_debbindiff'

- job-template:
    defaults: reproducible
    name: '{name}_setup_schroot_unstable'

- job-template:
    defaults: reproducible
    name: '{name}_setup_schroot_testing'

- job-template:
    defaults: reproducible
    name: '{name}_setup_schroot_experimental'

- job-template:
    defaults: reproducible
    name: '{name}_scheduler'

- job-template:
    defaults: reproducible
    name: '{name}_html_graphs'

- job-template:
    defaults: reproducible
    name: '{name}_html_indexes'

- job-template:
    defaults: reproducible
    name: '{name}_html_dd_list'

- job-template:
    defaults: reproducible_notes
    name: '{name}_html_notes'

- job-template:
    defaults: reproducible
    name: '{name}_html_all_packages'

- job-template:
    defaults: reproducible
    name: '{name}_html_repository_comparison'

- job-template:
    defaults: reproducible
    name: '{name}_create_meta_pkg_sets'

- job-template:
    defaults: reproducible
    name: '{name}_json'

- job-template:
    defaults: reproducible
    name: '{name}_breakages'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_alpha'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_beta'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_gamma'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_delta'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_epsilon'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_zeta'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_eta'

- job-template:
    defaults: reproducible_builder
    name: '{name}_builder_theta'

- job-template:
    defaults: reproducible_other_projects
    name: '{name}_coreboot'

- job-template:
    defaults: reproducible_other_projects
    name: '{name}_openwrt'

- project:
    name: reproducible
    jobs:
        - '{name}_maintenance':
            my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.'
            my_timed: '5 0,4,8,12,16,20 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_maintenance.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_pbuilder_testing':
            my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example'
            my_timed: '23 0,4,8,12,16,20 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_setup_pbuilder.sh testing'
            my_recipients: 'jenkins+debian-reproducible qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_pbuilder_unstable':
            my_description: 'Setup and update pbuilder for reproducible builds of packages from unstable as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example'
            my_timed: '23 0,4,8,12,16,20 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable'
            my_recipients: 'jenkins+debian-reproducible qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_pbuilder_experimental':
            my_description: 'Setup and update pbuilder for reproducible builds of packages from experimental as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example'
            my_timed: '23 0,4,8,12,16,20 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental'
            my_recipients: 'jenkins+debian-reproducible qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_schroot_unstable_debbindiff':
            my_description: 'Setup schroot for running debbindiff in a unstable environment (this is needed to be able to correctly investigate haskell binaries...)'
            my_timed: '23 0 * * *'
            my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-unstable-debbindiff unstable debbindiff locales-all'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_schroot_testing_debbindiff':
            my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)'
            my_timed: '23 0 * * *'
            my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-testing-debbindiff testing debbindiff locales-all'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_schroot_unstable':
            my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.'
            my_timed: '23 1 * * *'
            my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-unstable unstable reproducible botch'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_schroot_testing':
            my_description: 'Setup testing schroot for fetching source packages for the builder jobs.'
            my_timed: '23 1 * * *'
            my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-testing testing reproducible'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_setup_schroot_experimental':
            my_description: 'Setup experimental schroot for fetching source packages for the builder jobs.'
            my_timed: '23 1 * * *'
            my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-experimental experimental reproducible'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_scheduler':
            my_description: 'Schedule packages to be tested for reproducibility.'
            my_timed: '42 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_scheduler.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_graphs':
            my_description: 'Generate HTML results (stats with graphs) for reproducible builds.'
            my_timed: '0 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_html_graphs.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_indexes':
            my_description: 'Generate HTML results (indexes) for reproducible builds.'
            my_timed: '*/15 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_html_indexes.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_dd_list':
            my_description: 'Generate HTML results (dd-list) for reproducible builds.'
            my_timed: '55 23 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_html_dd_list.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_notes':
            my_description: 'Generate HTML results (notes) for reproducible builds, triggered by changes to the <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_blank">notes.git</a> repository.'
            my_timed: '57 0 * * *'
            my_gitrepo: 'git://git.debian.org/git/reproducible/notes.git'
            my_shell: '/srv/jenkins/bin/reproducible_html_notes.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_all_packages':
            my_description: 'Generate HTML results (for all packages) for reproducible builds. This job is rather redudant and just run to give a fuzzy warm feeling all pages are good.'
            my_timed: '37 13 * * 1'
            my_shell: '/srv/jenkins/bin/reproducible_html_all_packages.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_html_repository_comparison':
            my_description: 'Generate HTML results (repository_comparison) for reproducible builds.'
            my_timed: '0 1 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_html_repository_comparison.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_json':
            my_description: 'Generate https://reproducible.debian.net/userContent/reproducible.json for consumption by tracker.debian.org.'
            my_timed: '1 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_json.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_create_meta_pkg_sets':
            my_description: 'Create meta package sets for later consumption when generating HTML stats.'
            my_timed: '0 6 * * H/3'
            my_shell: '/srv/jenkins/bin/reproducible_create_meta_pkg_sets.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_breakages':
            my_description: 'Generate an HTML page with CI issues (packages with incoherent status or files that should or should not be there).'
            my_timed: '1 0 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_breakages.py'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_alpha':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_beta':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_gamma':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_delta':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_epsilon':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_zeta':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_eta':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_builder_theta':
            my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
            my_timed: 'H/2 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_coreboot':
            my_description: 'Try to rebuild all coreboot ROMs twice (with variations) and investigate them regarding reproducibility.'
            my_timed: '23 42 23 * *'
            my_shell: '/srv/jenkins/bin/reproducible_coreboot.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
        - '{name}_openwrt':
            my_description: 'Try to rebuild OpenWRT (some targets, some packages) twice (with variations) and investigate them regarding reproducibility.'
            my_timed: '23 42 23 * *'
            my_shell: '/srv/jenkins/bin/reproducible_openwrt.sh'
            my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org'