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