Commit | Line | Data |
---|---|---|
2b68721a MJ |
1 | - defaults: |
2 | name: lttng-ust | |
3 | description: | | |
4 | LTTng-UST, the Linux Trace Toolkit Next Generation Userspace Tracer, is a | |
5 | port of the low-overhead tracing capabilities of the LTTng kernel tracer | |
6 | to user-space. The library "liblttng-ust" enables tracing of | |
7 | applications and libraries. | |
8 | ||
9 | <p>Job is managed by Jenkins Job Builder.</p> | |
10 | ||
11 | project-type: freestyle | |
12 | ||
2b68721a MJ |
13 | wrappers: |
14 | - workspace-cleanup | |
15 | - timestamps | |
16 | - ansicolor | |
17 | ||
18 | scm: | |
19 | - git: | |
51ca880a | 20 | url: git://github.com/{github_user}/{github_name}.git |
2b68721a | 21 | browser: githubweb |
51ca880a | 22 | browser-url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
23 | branches: |
24 | - origin/{version} | |
1f4fba8c | 25 | basedir: src/lttng-ust |
89b9225e | 26 | skip-tag: true |
2b68721a MJ |
27 | |
28 | triggers: | |
29 | - pollscm: | |
30 | cron: "@hourly" | |
31 | ||
32 | properties: | |
69f05d59 MJ |
33 | - inject: |
34 | properties-content: | | |
35 | PROJECT_NAME=lttng-ust | |
edf72710 MJ |
36 | - build-discarder: |
37 | num-to-keep: 2 | |
2b68721a | 38 | - github: |
51ca880a | 39 | url: https://github.com/{github_user}/{github_name} |
2b68721a MJ |
40 | |
41 | ||
42 | ## Templates | |
43 | - job-template: | |
44 | name: lttng-ust_{version}_{buildtype} | |
45 | defaults: lttng-ust | |
46 | ||
47 | project-type: matrix | |
ca8c6144 | 48 | node: 'master' # Applies only to matrix flyweight task |
2b68721a MJ |
49 | execution-strategy: |
50 | combination-filter: | | |
51 | (build=="std") || (liburcu_version=="master") | |
52 | axes: | |
53 | - axis: | |
54 | type: slave | |
55 | name: arch | |
56 | values: '{obj:arch}' | |
57 | - axis: | |
58 | type: user-defined | |
59 | name: conf | |
95654431 | 60 | values: '{obj:conf}' |
2b68721a MJ |
61 | - axis: |
62 | type: user-defined | |
63 | name: liburcu_version | |
81bf613d | 64 | values: '{obj:liburcu_version}' |
2b68721a MJ |
65 | - axis: |
66 | type: user-defined | |
67 | name: build | |
68 | values: '{obj:build}' | |
69 | ||
70 | builders: | |
0349e2c0 JR |
71 | - conditional-step: |
72 | condition-kind: regex-match | |
73 | label: '$conf' | |
74 | regex: (std|agents) | |
75 | on-evaluation-failure: run | |
76 | steps: | |
77 | - copyartifact: | |
78 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
79 | which-build: last-successful | |
80 | stable: false | |
81 | filter: 'build/**' | |
82 | target: 'deps/liburcu' | |
83 | do-not-fingerprint: true | |
84 | ||
85 | - conditional-step: | |
86 | condition-kind: regex-match | |
87 | label: '$conf' | |
88 | regex: (debug-rcu) | |
89 | on-evaluation-failure: run | |
90 | steps: | |
91 | - copyartifact: | |
92 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std | |
93 | which-build: last-successful | |
94 | stable: false | |
95 | filter: 'build/**' | |
96 | target: 'deps/liburcu' | |
97 | do-not-fingerprint: true | |
2b68721a | 98 | - shell: |
ef63064f | 99 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a MJ |
100 | |
101 | # TODO: Scan for open tasks | |
102 | publishers: | |
103 | - tap: | |
1f4fba8c | 104 | results: 'tap/**/*.log' |
2b68721a | 105 | failed-tests-mark-build-as-failure: true |
95654431 | 106 | todo-is-failure: false |
2b68721a MJ |
107 | - warnings: |
108 | console-log-parsers: | |
109 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
110 | total-thresholds: |
111 | unstable: | |
d2c76ee5 MJ |
112 | total-all: 0 |
113 | total-high: 0 | |
114 | total-normal: 0 | |
115 | total-low: 0 | |
2b68721a MJ |
116 | - archive: |
117 | artifacts: 'build/**' | |
118 | allow-empty: false | |
119 | - workspace-cleanup | |
68fff945 JR |
120 | - email-ext: |
121 | recipients: '{obj:email_to}' | |
122 | reply-to: ci-notification@lists.lttng.org | |
123 | always: false | |
124 | unstable: false | |
125 | first-failure: true | |
126 | first-unstable: true | |
127 | not-built: false | |
128 | aborted: false | |
129 | regression: false | |
130 | failure: false | |
131 | second-failure: false | |
132 | improvement: false | |
133 | still-failing: false | |
134 | success: false | |
135 | fixed: false | |
136 | fixed-unhealthy: true | |
137 | still-unstable: false | |
138 | pre-build: false | |
139 | matrix-trigger: only-parent | |
140 | send-to: | |
141 | - recipients | |
2b68721a MJ |
142 | |
143 | - job-template: | |
144 | name: lttng-ust_{version}_cppcheck | |
145 | defaults: lttng-ust | |
146 | ||
147 | triggers: | |
148 | - pollscm: | |
149 | cron: "@daily" | |
150 | ||
151 | builders: | |
152 | - shell: | | |
153 | rm -f lttng-ust-cppcheck.xml | |
73778992 | 154 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml |
2b68721a MJ |
155 | |
156 | publishers: | |
157 | - archive: | |
158 | artifacts: 'lttng-ust-cppcheck.xml' | |
159 | allow-empty: false | |
160 | - cppcheck: | |
161 | pattern: 'lttng-ust-cppcheck.xml' | |
162 | - email: | |
163 | recipients: 'ci-notification@lists.lttng.org' | |
164 | notify-every-unstable-build: true | |
165 | send-to-individuals: false | |
166 | ||
167 | - job-template: | |
168 | name: lttng-ust_{version}_scan-build | |
169 | defaults: lttng-ust | |
170 | node: 'x86-64' | |
171 | ||
172 | triggers: | |
173 | - pollscm: | |
174 | cron: "@daily" | |
175 | ||
176 | builders: | |
c9b78c7b MJ |
177 | - copyartifact: |
178 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
179 | which-build: last-successful | |
3522265a | 180 | stable: false |
c9b78c7b MJ |
181 | filter: 'build/**' |
182 | target: 'deps/liburcu' | |
183 | do-not-fingerprint: true | |
2b68721a | 184 | - shell: |
69f05d59 | 185 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
186 | |
187 | publishers: | |
188 | - html-publisher: | |
189 | name: 'HTML Report' | |
190 | dir: 'scan-build-archive/' | |
191 | files: 'index.html' | |
192 | ||
cdb4cba4 MJ |
193 | - job-template: |
194 | name: lttng-ust_{version}_coverity | |
195 | defaults: lttng-ust | |
196 | node: 'x86-64' | |
197 | ||
198 | triggers: | |
199 | - pollscm: | |
200 | cron: "@daily" | |
201 | ||
202 | wrappers: | |
203 | - workspace-cleanup | |
204 | - timestamps | |
205 | - ansicolor: | |
206 | colormap: xterm | |
207 | - credentials-binding: | |
208 | - username-password-separated: | |
209 | credential-id: lttng-ust_coverity_token | |
210 | username: COVERITY_SCAN_PROJECT_NAME | |
211 | password: COVERITY_SCAN_TOKEN | |
212 | ||
213 | builders: | |
214 | - copyartifact: | |
215 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
216 | which-build: last-successful | |
3522265a | 217 | stable: false |
cdb4cba4 MJ |
218 | filter: 'build/**' |
219 | target: 'deps/liburcu' | |
220 | do-not-fingerprint: true | |
221 | - shell: | |
ef63064f | 222 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
223 | |
224 | publishers: | |
225 | - workspace-cleanup | |
1f4fba8c MJ |
226 | - archive: |
227 | artifacts: 'analysis-results.tgz,cov-int/**' | |
228 | allow-empty: false | |
2b68721a | 229 | |
c9b78c7b | 230 | # TODO |
2b68721a MJ |
231 | - job-template: |
232 | name: lttng-ust_{version}_pylint | |
233 | defaults: lttng-ust | |
234 | node: 'x86-64' | |
235 | ||
236 | scm: [] | |
237 | ||
238 | triggers: | |
239 | - pollscm: | |
240 | cron: "@daily" | |
241 | ||
242 | builders: | |
243 | - copyartifact: | |
67122b96 | 244 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=agents |
2b68721a | 245 | which-build: last-successful |
3522265a | 246 | stable: false |
2b68721a MJ |
247 | filter: 'build/**' |
248 | target: 'deps/lttng-ust' | |
249 | do-not-fingerprint: true | |
250 | - shell: | |
ef63064f | 251 | !include-raw-escape: scripts/lttng-ust/pylint.sh |
2b68721a MJ |
252 | |
253 | publishers: | |
254 | - archive: | |
255 | artifacts: 'pep8.out,pylint.out' | |
256 | - violations: | |
257 | pep8: | |
258 | pattern: pep8.out | |
259 | min: 10 | |
260 | max: 999 | |
261 | unstable: 999 | |
262 | pylint: | |
263 | pattern: pylint.out | |
264 | min: 10 | |
265 | max: 999 | |
266 | unstable: 999 | |
68fff945 JR |
267 | - email-ext: |
268 | recipients: '{obj:email_to}' | |
269 | always: false | |
270 | unstable: false | |
271 | first-failure: true | |
272 | first-unstable: true | |
273 | not-built: false | |
274 | aborted: false | |
275 | regression: false | |
276 | failure: false | |
277 | second-failure: false | |
278 | improvement: false | |
279 | still-failing: false | |
280 | success: false | |
281 | fixed: false | |
282 | fixed-unhealthy: true | |
283 | still-unstable: false | |
284 | pre-build: false | |
285 | matrix-trigger: only-parent | |
286 | send-to: | |
287 | - recipients | |
2b68721a MJ |
288 | |
289 | ## Project | |
290 | - project: | |
291 | name: lttng-ust | |
51ca880a MJ |
292 | github_user: lttng |
293 | github_name: lttng-ust | |
68fff945 | 294 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
2b68721a | 295 | version: |
9beacf91 MJ |
296 | - stable-2.7 |
297 | - stable-2.8 | |
0a9d9a74 | 298 | - stable-2.9 |
b631316e | 299 | - stable-2.10 |
2b68721a MJ |
300 | jobs: |
301 | - 'lttng-ust_{version}_{buildtype}': | |
302 | buildtype: build | |
303 | arch: !!python/tuple [x86-32, x86-64] | |
67122b96 | 304 | build: !!python/tuple [std, dist, oot, oot-dist] |
0349e2c0 | 305 | conf: !!python/tuple [std, agents, debug-rcu] |
81bf613d | 306 | liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master] |
2b68721a MJ |
307 | - 'lttng-ust_{version}_{buildtype}': |
308 | buildtype: portbuild | |
3b3282a6 | 309 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
2b68721a | 310 | build: !!python/tuple [std] |
67122b96 | 311 | conf: !!python/tuple [std, agents] |
81bf613d MJ |
312 | liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master] |
313 | - 'lttng-ust_{version}_{buildtype}': | |
314 | buildtype: slesbuild | |
315 | arch: !!python/tuple [sles12sp2] | |
316 | build: !!python/tuple [std] | |
317 | conf: !!python/tuple [std] | |
318 | liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master] | |
2b68721a MJ |
319 | - 'lttng-ust_{version}_cppcheck' |
320 | - 'lttng-ust_{version}_scan-build' | |
fe16cb00 MJ |
321 | - 'lttng-ust_{version}_{buildtype}': |
322 | buildtype: build | |
323 | version: master | |
324 | arch: !!python/tuple [x86-32, x86-64] | |
325 | build: !!python/tuple [std, dist, oot, oot-dist] | |
326 | conf: !!python/tuple [std, agents, debug-rcu] | |
327 | liburcu_version: !!python/tuple [master] | |
328 | - 'lttng-ust_{version}_{buildtype}': | |
329 | buildtype: portbuild | |
330 | version: master | |
331 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] | |
332 | build: !!python/tuple [std] | |
333 | conf: !!python/tuple [std, agents] | |
334 | liburcu_version: !!python/tuple [master] | |
335 | - 'lttng-ust_{version}_{buildtype}': | |
336 | buildtype: slesbuild | |
337 | version: master | |
338 | arch: !!python/tuple [sles12sp2] | |
339 | build: !!python/tuple [std] | |
340 | conf: !!python/tuple [std] | |
341 | liburcu_version: !!python/tuple [master] | |
342 | - 'lttng-ust_{version}_cppcheck': | |
343 | version: master | |
344 | - 'lttng-ust_{version}_scan-build': | |
345 | version: master | |
cdb4cba4 MJ |
346 | - 'lttng-ust_{version}_coverity': |
347 | version: master | |
2b68721a | 348 |