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 | ||
221 | parameters: | |
222 | - string: | |
223 | name: 'mversion' | |
224 | default: 'master' | |
225 | description: 'The lttng-modules branch to build.' | |
226 | - string: | |
227 | name: 'kversion' | |
228 | default: '' | |
229 | description: 'The linux kernel git tag to build against.' | |
230 | - string: | |
231 | name: 'kgitrepo' | |
7e942863 | 232 | default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' |
f3d8604b MJ |
233 | description: 'The linux kernel git repository url.' |
234 | ||
235 | concurrent: true | |
f3d8604b MJ |
236 | |
237 | scm: | |
238 | - git: | |
239 | url: git://github.com/lttng/lttng-modules.git | |
240 | browser: githubweb | |
241 | browser-url: https://github.com/lttng/lttng-modules | |
242 | branches: | |
243 | - "${{mversion}}" | |
244 | skip-tag: true | |
339db64d | 245 | basedir: src/lttng-modules |
f3d8604b | 246 | |
2c1d386a MJ |
247 | triggers: |
248 | ||
f3d8604b MJ |
249 | builders: |
250 | - shell: | | |
339db64d | 251 | git clone --depth=1 -b "$kversion" --reference $HOME/gitcache/linux-stable.git/ "$kgitrepo" src/linux |
f3d8604b MJ |
252 | - shell: |
253 | !include-raw-escape: scripts/lttng-modules/param-build.sh | |
254 | ||
255 | publishers: | |
256 | - workspace-cleanup | |
257 | ||
4f3fef7d | 258 | - job-template: |
f899b1be | 259 | name: lttng-modules_{mversion}_coverity |
4f3fef7d MJ |
260 | defaults: lttng-modules |
261 | node: 'x86-64' | |
262 | ||
263 | triggers: | |
264 | - pollscm: | |
265 | cron: "@daily" | |
266 | ||
267 | wrappers: | |
268 | - workspace-cleanup | |
269 | - timestamps | |
270 | - ansicolor: | |
271 | colormap: xterm | |
272 | - credentials-binding: | |
273 | - username-password-separated: | |
274 | credential-id: lttng-modules_coverity_token | |
275 | username: COVERITY_SCAN_PROJECT_NAME | |
276 | password: COVERITY_SCAN_TOKEN | |
277 | ||
278 | builders: | |
5122da3c | 279 | - shell: | |
7e942863 MJ |
280 | 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 |
281 | cd src/linux | |
5122da3c JR |
282 | make defconfig |
283 | sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config | |
284 | make modules_prepare | |
4f3fef7d | 285 | - shell: |
ef63064f | 286 | !include-raw-escape: scripts/common/coverity.sh |
4f3fef7d MJ |
287 | |
288 | publishers: | |
289 | - workspace-cleanup | |
598af463 | 290 | |
f899b1be MJ |
291 | - job-template: |
292 | name: lttng-modules_{mversion}_cppcheck | |
293 | defaults: lttng-modules | |
294 | ||
295 | triggers: | |
296 | - pollscm: | |
997b01f2 | 297 | cron: "@daily" |
f899b1be | 298 | |
f899b1be MJ |
299 | builders: |
300 | - shell: | | |
301 | rm -f cppcheck.xml | |
7e942863 | 302 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck.xml |
f899b1be MJ |
303 | |
304 | publishers: | |
305 | - archive: | |
306 | artifacts: 'cppcheck.xml' | |
307 | allow-empty: false | |
308 | - cppcheck: | |
309 | pattern: 'cppcheck.xml' | |
310 | - email: | |
311 | recipients: 'ci-notification@lists.lttng.org' | |
312 | notify-every-unstable-build: true | |
313 | send-to-individuals: false | |
314 | ||
2c1d386a MJ |
315 | - job-template: |
316 | name: lttng-modules_{mversion}_sloccount | |
317 | defaults: lttng-modules | |
318 | description: | | |
319 | The LTTng modules provide Linux kernel tracing capability to the LTTng | |
320 | 2.0 tracer toolset. | |
321 | ||
322 | This job runs the sloccount utility and generates a trend report. | |
323 | ||
324 | <p>Job is managed by Jenkins Job Builder.</p> | |
325 | ||
326 | triggers: | |
327 | - pollscm: | |
328 | cron: "@daily" | |
329 | ||
330 | builders: | |
331 | - shell: | | |
106c873f | 332 | cloc --by-file --xml --out=cloc.xml src/lttng-modules/ |
2c1d386a MJ |
333 | |
334 | publishers: | |
335 | - archive: | |
336 | artifacts: 'cloc.xml' | |
337 | allow-empty: false | |
338 | - sloccount: | |
339 | report-files: 'cloc.xml' | |
340 | ||
f899b1be | 341 | |
598af463 MJ |
342 | ## Project |
343 | - project: | |
344 | name: lttng-modules | |
51ca880a MJ |
345 | github_user: lttng |
346 | github_name: lttng-modules | |
598af463 | 347 | mversion: |
9beacf91 MJ |
348 | - stable-2.7 |
349 | - stable-2.8 | |
350 | - master | |
598af463 | 351 | jobs: |
f3d8604b | 352 | - 'lttng-modules_{mversion}_build-vanilla' |
2c1d386a MJ |
353 | - 'lttng-modules_{mversion}_build-rt': |
354 | mversion: master | |
f3d8604b MJ |
355 | - 'lttng-modules_{mversion}_build-{uversion}': |
356 | uversion: | |
357 | - trusty | |
358 | - xenial | |
359 | - 'lttng-modules_VERSION_param-build': | |
598af463 | 360 | arch: !!python/tuple [x86-32, x86-64] |
f899b1be | 361 | - 'lttng-modules_{mversion}_cppcheck' |
2c1d386a MJ |
362 | - 'lttng-modules_{mversion}_sloccount': |
363 | mversion: master | |
f899b1be MJ |
364 | - 'lttng-modules_{mversion}_coverity': |
365 | mversion: master |