Commit | Line | Data |
---|---|---|
598af463 MJ |
1 | --- |
2 | - defaults: | |
3 | name: lttng-modules | |
4 | description: | | |
f899b1be MJ |
5 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
6 | 2.0 tracer toolset. | |
a3c2d81c MJ |
7 | |
8 | <p>Job is managed by Jenkins Job Builder.</p> | |
598af463 MJ |
9 | |
10 | project-type: freestyle | |
11 | ||
598af463 MJ |
12 | wrappers: |
13 | - workspace-cleanup | |
14 | - timestamps | |
15 | - ansicolor | |
16 | ||
17 | scm: | |
598af463 | 18 | - git: |
51ca880a | 19 | url: git://github.com/{github_user}/{github_name}.git |
9a00aa82 | 20 | browser: githubweb |
51ca880a | 21 | browser-url: https://github.com/{github_user}/{github_name} |
598af463 MJ |
22 | branches: |
23 | - "{mversion}" | |
94bddbc4 MJ |
24 | shallow-clone: true |
25 | skip-tag: true | |
26 | fastpoll: true | |
7e942863 | 27 | basedir: src/lttng-modules |
598af463 | 28 | |
d2fc1027 | 29 | triggers: |
4f3fef7d | 30 | - pollscm: |
997b01f2 | 31 | cron: "@hourly" |
d2fc1027 | 32 | |
598af463 | 33 | properties: |
edf72710 MJ |
34 | - build-discarder: |
35 | num-to-keep: 2 | |
9a00aa82 | 36 | - github: |
51ca880a | 37 | url: https://github.com/{github_user}/{github_name} |
598af463 MJ |
38 | |
39 | ||
40 | ## Templates | |
41 | - job-template: | |
42 | name: lttng-modules_{mversion}_{kversion}_{buildtype} | |
43 | defaults: lttng-modules | |
44 | ||
45 | project-type: matrix | |
ca8c6144 | 46 | node: 'master' # Applies only to matrix flyweight task |
598af463 MJ |
47 | axes: |
48 | - axis: | |
49 | type: slave | |
50 | name: arch | |
51 | values: '{obj:arch}' | |
52 | ||
53 | builders: | |
54 | - copyartifact: | |
55 | project: kernel_{kversion}_{buildtype}/arch=$arch | |
56 | which-build: last-successful | |
57 | stable: true | |
58 | filter: 'build/**' | |
59 | target: 'deps/linux' | |
83001fea | 60 | do-not-fingerprint: true |
a3c2d81c | 61 | - shell: | |
7e942863 | 62 | git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux |
598af463 | 63 | - shell: |
ef63064f | 64 | !include-raw-escape: scripts/lttng-modules/build.sh |
598af463 MJ |
65 | |
66 | publishers: | |
67 | - archive: | |
68 | artifacts: 'build/**' | |
69 | allow-empty: false | |
a3c2d81c | 70 | - workspace-cleanup |
598af463 | 71 | |
f3d8604b MJ |
72 | - job-template: |
73 | name: lttng-modules_{mversion}_build-vanilla | |
74 | defaults: lttng-modules | |
2c1d386a MJ |
75 | description: | |
76 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
77 | 2.0 tracer toolset. | |
78 | ||
79 | This job will build the {mversion} branch against all stable vanilla | |
80 | kernel tags. | |
81 | ||
82 | <p>Job is managed by Jenkins Job Builder.</p> | |
f3d8604b MJ |
83 | |
84 | node: 'master' | |
85 | ||
86 | parameters: | |
87 | - string: | |
88 | name: 'mversion' | |
89 | default: '{mversion}' | |
90 | description: 'The lttng-modules branch to build.' | |
91 | - string: | |
92 | name: 'maxConcurrentBuild' | |
cb18f1d6 | 93 | default: '20' |
f3d8604b MJ |
94 | description: 'The maximum number of concurrent child build to run.' |
95 | - string: | |
96 | name: 'kverfloor' | |
97 | default: 'v2.6.36' | |
98 | description: 'The lowest kernel version to build.' | |
99 | - string: | |
100 | name: 'kgitrepo' | |
7e942863 | 101 | default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' |
f3d8604b MJ |
102 | description: 'The linux kernel git repository url.' |
103 | - string: | |
104 | name: 'kbuildjob' | |
105 | default: 'lttng-modules_VERSION_param-build' | |
106 | description: 'The parametrized job to use for child builds.' | |
107 | ||
108 | builders: | |
109 | - system-groovy: | |
110 | command: | |
2c1d386a | 111 | !include-raw-escape: scripts/lttng-modules/master-vanilla.groovy |
f3d8604b MJ |
112 | |
113 | publishers: | |
114 | - workspace-cleanup | |
115 | ||
116 | - job-template: | |
117 | name: lttng-modules_{mversion}_build-{uversion} | |
118 | defaults: lttng-modules | |
2c1d386a MJ |
119 | description: | |
120 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
121 | 2.0 tracer toolset. | |
122 | ||
123 | This job will build the {mversion} branch against all Ubuntu {uversion} | |
124 | released kernels, including the LTS backport kernels. | |
125 | ||
126 | <p>Job is managed by Jenkins Job Builder.</p> | |
f3d8604b MJ |
127 | |
128 | node: 'master' | |
129 | ||
130 | parameters: | |
131 | - string: | |
132 | name: 'mversion' | |
133 | default: '{mversion}' | |
134 | description: 'The lttng-modules branch to build.' | |
135 | - string: | |
136 | name: 'maxConcurrentBuild' | |
cb18f1d6 | 137 | default: '20' |
f3d8604b MJ |
138 | description: 'The maximum number of concurrent child build to run.' |
139 | - string: | |
140 | name: 'uversion' | |
141 | default: '{uversion}' | |
142 | description: 'The lowest kernel version to build.' | |
143 | - string: | |
144 | name: 'kgitrepo' | |
7e942863 | 145 | default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' |
f3d8604b MJ |
146 | description: 'The linux kernel git repository url.' |
147 | - string: | |
148 | name: 'kbuildjob' | |
149 | default: 'lttng-modules_VERSION_param-build' | |
150 | description: 'The parametrized job to use for child builds.' | |
151 | ||
152 | builders: | |
153 | - system-groovy: | |
154 | command: | |
155 | !include-raw-escape: scripts/lttng-modules/master-ubuntu.groovy | |
156 | ||
157 | publishers: | |
158 | - workspace-cleanup | |
159 | ||
2c1d386a MJ |
160 | - job-template: |
161 | name: lttng-modules_{mversion}_build-rt | |
162 | defaults: lttng-modules | |
163 | description: | | |
164 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
165 | 2.0 tracer toolset. | |
166 | ||
167 | This job will build the {mversion} branch against all Linutronix RT | |
168 | kernels. | |
169 | ||
170 | <p>Job is managed by Jenkins Job Builder.</p> | |
171 | ||
172 | node: 'master' | |
173 | ||
174 | parameters: | |
175 | - string: | |
176 | name: 'mversion' | |
177 | default: '{mversion}' | |
178 | description: 'The lttng-modules branch to build.' | |
179 | - string: | |
180 | name: 'maxConcurrentBuild' | |
cb18f1d6 | 181 | default: '20' |
2c1d386a MJ |
182 | description: 'The maximum number of concurrent child build to run.' |
183 | - string: | |
184 | name: 'kverfloor' | |
185 | default: 'v2.6.36-rt0-rebase' | |
186 | description: 'The lowest kernel version to build.' | |
187 | - string: | |
188 | name: 'kgitrepo' | |
7e942863 | 189 | default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-rt-devel.git' |
2c1d386a MJ |
190 | description: 'The linux kernel git repository url.' |
191 | - string: | |
192 | name: 'kbuildjob' | |
193 | default: 'lttng-modules_VERSION_param-build' | |
194 | description: 'The parametrized job to use for child builds.' | |
195 | ||
196 | builders: | |
197 | - system-groovy: | |
198 | command: | |
199 | !include-raw-escape: scripts/lttng-modules/master-rt.groovy | |
200 | ||
201 | publishers: | |
202 | - workspace-cleanup | |
203 | ||
f3d8604b MJ |
204 | - job-template: |
205 | name: lttng-modules_VERSION_param-build | |
206 | defaults: lttng-modules | |
207 | description: | | |
208 | This is a parametrized job used by 'master' jobs to build any combinations | |
209 | of lttng-modules and linux kernel versions. | |
210 | ||
211 | <p>Job is managed by Jenkins Job Builder.</p> | |
212 | ||
213 | project-type: matrix | |
214 | node: 'master' # Applies only to matrix flyweight task | |
215 | axes: | |
216 | - axis: | |
217 | type: slave | |
218 | name: arch | |
219 | values: '{obj:arch}' | |
220 | ||
a2f4e8b8 MJ |
221 | properties: |
222 | - build-discarder: | |
223 | days-to-keep: 2 | |
224 | ||
f3d8604b MJ |
225 | parameters: |
226 | - string: | |
227 | name: 'mversion' | |
228 | default: 'master' | |
229 | description: 'The lttng-modules branch to build.' | |
230 | - string: | |
231 | name: 'kversion' | |
232 | default: '' | |
233 | description: 'The linux kernel git tag to build against.' | |
234 | - string: | |
235 | name: 'kgitrepo' | |
7e942863 | 236 | default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' |
f3d8604b MJ |
237 | description: 'The linux kernel git repository url.' |
238 | ||
239 | concurrent: true | |
f3d8604b MJ |
240 | |
241 | scm: | |
242 | - git: | |
243 | url: git://github.com/lttng/lttng-modules.git | |
244 | browser: githubweb | |
245 | browser-url: https://github.com/lttng/lttng-modules | |
246 | branches: | |
247 | - "${{mversion}}" | |
248 | skip-tag: true | |
339db64d | 249 | basedir: src/lttng-modules |
f3d8604b | 250 | |
2c1d386a MJ |
251 | triggers: |
252 | ||
f3d8604b MJ |
253 | builders: |
254 | - shell: | | |
339db64d | 255 | git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux |
f3d8604b MJ |
256 | - shell: |
257 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
258 | ||
259 | publishers: | |
260 | - workspace-cleanup | |
261 | ||
4f3fef7d | 262 | - job-template: |
f899b1be | 263 | name: lttng-modules_{mversion}_coverity |
4f3fef7d MJ |
264 | defaults: lttng-modules |
265 | node: 'x86-64' | |
266 | ||
267 | triggers: | |
268 | - pollscm: | |
269 | cron: "@daily" | |
270 | ||
271 | wrappers: | |
272 | - workspace-cleanup | |
273 | - timestamps | |
274 | - ansicolor: | |
275 | colormap: xterm | |
276 | - credentials-binding: | |
277 | - username-password-separated: | |
278 | credential-id: lttng-modules_coverity_token | |
279 | username: COVERITY_SCAN_PROJECT_NAME | |
280 | password: COVERITY_SCAN_TOKEN | |
281 | ||
282 | builders: | |
5122da3c | 283 | - shell: | |
7e942863 MJ |
284 | git clone --depth=1 -b v4.4 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux |
285 | cd src/linux | |
5122da3c JR |
286 | make defconfig |
287 | sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config | |
288 | make modules_prepare | |
4f3fef7d | 289 | - shell: |
ef63064f | 290 | !include-raw-escape: scripts/common/coverity.sh |
4f3fef7d MJ |
291 | |
292 | publishers: | |
293 | - workspace-cleanup | |
598af463 | 294 | |
f899b1be MJ |
295 | - job-template: |
296 | name: lttng-modules_{mversion}_cppcheck | |
297 | defaults: lttng-modules | |
298 | ||
299 | triggers: | |
300 | - pollscm: | |
997b01f2 | 301 | cron: "@daily" |
f899b1be | 302 | |
f899b1be MJ |
303 | builders: |
304 | - shell: | | |
305 | rm -f cppcheck.xml | |
7e942863 | 306 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml |
f899b1be MJ |
307 | |
308 | publishers: | |
309 | - archive: | |
310 | artifacts: 'cppcheck.xml' | |
311 | allow-empty: false | |
312 | - cppcheck: | |
313 | pattern: 'cppcheck.xml' | |
314 | - email: | |
315 | recipients: 'ci-notification@lists.lttng.org' | |
316 | notify-every-unstable-build: true | |
317 | send-to-individuals: false | |
318 | ||
2c1d386a MJ |
319 | - job-template: |
320 | name: lttng-modules_{mversion}_sloccount | |
321 | defaults: lttng-modules | |
322 | description: | | |
323 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
324 | 2.0 tracer toolset. | |
325 | ||
326 | This job runs the sloccount utility and generates a trend report. | |
327 | ||
328 | <p>Job is managed by Jenkins Job Builder.</p> | |
329 | ||
330 | triggers: | |
331 | - pollscm: | |
332 | cron: "@daily" | |
333 | ||
334 | builders: | |
335 | - shell: | | |
106c873f | 336 | cloc --by-file --xml --out=cloc.xml src/lttng-modules/ |
2c1d386a MJ |
337 | |
338 | publishers: | |
339 | - archive: | |
340 | artifacts: 'cloc.xml' | |
341 | allow-empty: false | |
342 | - sloccount: | |
343 | report-files: 'cloc.xml' | |
344 | ||
f899b1be | 345 | |
598af463 MJ |
346 | ## Project |
347 | - project: | |
348 | name: lttng-modules | |
51ca880a MJ |
349 | github_user: lttng |
350 | github_name: lttng-modules | |
598af463 | 351 | mversion: |
9beacf91 MJ |
352 | - stable-2.7 |
353 | - stable-2.8 | |
0a9d9a74 | 354 | - stable-2.9 |
9beacf91 | 355 | - master |
598af463 | 356 | jobs: |
f3d8604b | 357 | - 'lttng-modules_{mversion}_build-vanilla' |
2c1d386a MJ |
358 | - 'lttng-modules_{mversion}_build-rt': |
359 | mversion: master | |
f3d8604b MJ |
360 | - 'lttng-modules_{mversion}_build-{uversion}': |
361 | uversion: | |
362 | - trusty | |
363 | - xenial | |
364 | - 'lttng-modules_VERSION_param-build': | |
598af463 | 365 | arch: !!python/tuple [x86-32, x86-64] |
f899b1be | 366 | - 'lttng-modules_{mversion}_cppcheck' |
2c1d386a MJ |
367 | - 'lttng-modules_{mversion}_sloccount': |
368 | mversion: master | |
f899b1be MJ |
369 | - 'lttng-modules_{mversion}_coverity': |
370 | mversion: master |