summaryrefslogtreecommitdiffstats
path: root/job-cfg/reproducible.yaml
blob: 5a9abe5677b42a319fe90de06a61a16c46236c72 (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
- defaults:
    name: reproducible
    triggers:
      - timed: "{my_timed}"
    project-type: freestyle
    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.com
          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 the <a href="https://jenkins.debian.net/userContent/reproducible.html">reproducible builds overview</a> pages.'
    logrotate:
      daysToKeep: 365
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
    publishers:
      - email:
          recipients: 'jenkins+debian-reproducible holger@layer-acht.org'
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'

- defaults:
    name: reproducible_builder
    triggers:
      - timed: "{my_timed}"
    project-type: freestyle
    concurrent: True
    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.com
          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 the <a href="https://jenkins.debian.net/userContent/reproducible.html">reproducible builds overview</a> pages.'
    logrotate:
      daysToKeep: 365
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell} {my_params}'
    publishers:
      - email:
          recipients: 'holger@layer-acht.org'
          notify-every-unstable-build: False
      - logparser:
          parse-rules: '/srv/jenkins/logparse/reproducible.rules'
          unstable-on-warning: 'true'
          fail-on-error: 'true'

- defaults:
    name: reproducible_stats
    triggers:
      - timed: "{my_timed}"
    project-type: freestyle
    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.com
          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 the <a href="https://jenkins.debian.net/userContent/reproducible.html">reproducible builds overview</a> pages.'
    logrotate:
      daysToKeep: 365
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    builders:
      - shell: '{my_shell}'
    publishers:
      - email:
          recipients: 'jenkins+debian-reproducible holger@layer-acht.org'
      - htmlpublisher:
          name: 'Reproducible build overview'
          directory: '.'
          indexfiles: 'reproducible.html'
          keepall: True
#      - trigger:
#          project: 'reproducible_stats'
#          threshold: 'UNSTABLE'

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

- job-template:
    defaults: reproducible_stats
    name: '{name}_stats'

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

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

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

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

- project:
    name: reproducible
    jobs:
        - '{name}_setup':
            my_description: 'Setup pbuilder for reproducible builds as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example'
            my_timed: '42 0 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_setup.sh'
        - '{name}_stats':
            my_description: 'Generates HTML results for reproducible builds.'
            my_timed: '0 0,6,12,18 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_stats.sh'
        - '{name}_build_random_packages':
            my_description: 'Reproducible build this many random packages each day:'
            my_timed: '0,15,30,45 * * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_params: 'unknown 10'
        - '{name}_build_new_versions':
            my_description: 'Try to reproducible build packages which were build before and for which a new version exists:'
            my_timed: '42 2,14 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_params: 'known 25'
        - '{name}_build_candidates':
            my_description: 'Reproducible build packages from a list of pre-defined candidates: '
            my_timed: '0 0,4,8,12,16,20 * * *'
            my_shell: '/srv/jenkins/bin/reproducible_build.sh'
            my_params: 'candidates 20'
        - '{name}_scheduler':
            my_description: 'Schedule packages to be tested on reproducible building.'
#            my_timed: '23 * * * *'
            my_timed: ''
            my_shell: '/srv/jenkins/bin/reproducible_scheduler.sh'