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 | 49 | execution-strategy: |
568b5cbd | 50 | combination-filter: '{filter}' |
2b68721a MJ |
51 | axes: |
52 | - axis: | |
53 | type: slave | |
54 | name: arch | |
55 | values: '{obj:arch}' | |
56 | - axis: | |
57 | type: user-defined | |
58 | name: conf | |
95654431 | 59 | values: '{obj:conf}' |
2b68721a MJ |
60 | - axis: |
61 | type: user-defined | |
62 | name: liburcu_version | |
81bf613d | 63 | values: '{obj:liburcu_version}' |
2b68721a MJ |
64 | - axis: |
65 | type: user-defined | |
66 | name: build | |
67 | values: '{obj:build}' | |
68 | ||
69 | builders: | |
0349e2c0 JR |
70 | - conditional-step: |
71 | condition-kind: regex-match | |
72 | label: '$conf' | |
73 | regex: (std|agents) | |
74 | on-evaluation-failure: run | |
75 | steps: | |
76 | - copyartifact: | |
77 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
78 | which-build: last-successful | |
79 | stable: false | |
80 | filter: 'build/**' | |
3579dc14 | 81 | target: 'deps' |
0349e2c0 JR |
82 | do-not-fingerprint: true |
83 | ||
84 | - conditional-step: | |
85 | condition-kind: regex-match | |
86 | label: '$conf' | |
87 | regex: (debug-rcu) | |
88 | on-evaluation-failure: run | |
89 | steps: | |
90 | - copyartifact: | |
91 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std | |
92 | which-build: last-successful | |
93 | stable: false | |
94 | filter: 'build/**' | |
3579dc14 | 95 | target: 'deps' |
0349e2c0 | 96 | do-not-fingerprint: true |
2b68721a | 97 | - shell: |
ef63064f | 98 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a MJ |
99 | |
100 | # TODO: Scan for open tasks | |
101 | publishers: | |
102 | - tap: | |
1f4fba8c | 103 | results: 'tap/**/*.log' |
1d56e325 | 104 | fail-if-no-results: true |
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 | 116 | - archive: |
3579dc14 | 117 | artifacts: 'build/**,tap/**' |
2b68721a MJ |
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: | | |
5279b0f2 MJ |
153 | rm -f cppcheck-result.xml |
154 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> cppcheck-result.xml | |
2b68721a MJ |
155 | |
156 | publishers: | |
157 | - archive: | |
5279b0f2 | 158 | artifacts: 'cppcheck-result.xml' |
2b68721a MJ |
159 | allow-empty: false |
160 | - cppcheck: | |
5279b0f2 | 161 | pattern: 'cppcheck-result.xml' |
2b68721a MJ |
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 | |
16844a6d | 170 | node: 'amd64' |
2b68721a MJ |
171 | |
172 | triggers: | |
173 | - pollscm: | |
174 | cron: "@daily" | |
175 | ||
176 | builders: | |
c9b78c7b | 177 | - copyartifact: |
16844a6d | 178 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
c9b78c7b | 179 | which-build: last-successful |
3522265a | 180 | stable: false |
c9b78c7b | 181 | filter: 'build/**' |
6544f0ff | 182 | target: 'deps' |
c9b78c7b | 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 | |
16844a6d | 196 | node: 'amd64' |
cdb4cba4 MJ |
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: | |
16844a6d | 215 | project: liburcu_master_build/arch=amd64,conf=std,build=std |
cdb4cba4 | 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 | |
2b68721a | 230 | |
3579dc14 MJ |
231 | ## Views |
232 | - view-template: | |
233 | name: 'LTTng-ust' | |
234 | view-type: list | |
235 | regex: 'lttng-ust[-_].*' | |
2b68721a | 236 | |
2b68721a | 237 | |
3579dc14 | 238 | ## Projects |
2b68721a MJ |
239 | - project: |
240 | name: lttng-ust | |
51ca880a MJ |
241 | github_user: lttng |
242 | github_name: lttng-ust | |
68fff945 | 243 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
2b68721a | 244 | version: |
9beacf91 | 245 | - stable-2.8 |
0a9d9a74 | 246 | - stable-2.9 |
b631316e | 247 | - stable-2.10 |
7f5ffb7a | 248 | - stable-2.11 |
2b68721a MJ |
249 | jobs: |
250 | - 'lttng-ust_{version}_{buildtype}': | |
251 | buildtype: build | |
16844a6d | 252 | arch: !!python/tuple [amd64] |
67122b96 | 253 | build: !!python/tuple [std, dist, oot, oot-dist] |
0349e2c0 | 254 | conf: !!python/tuple [std, agents, debug-rcu] |
3579dc14 | 255 | liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, stable-0.11, master] |
568b5cbd | 256 | filter: '(build=="std") || (liburcu_version=="master")' |
2b68721a MJ |
257 | - 'lttng-ust_{version}_{buildtype}': |
258 | buildtype: portbuild | |
16844a6d | 259 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
2b68721a | 260 | build: !!python/tuple [std] |
67122b96 | 261 | conf: !!python/tuple [std, agents] |
3579dc14 | 262 | liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, stable-0.11, master] |
568b5cbd | 263 | filter: '' |
81bf613d MJ |
264 | - 'lttng-ust_{version}_{buildtype}': |
265 | buildtype: slesbuild | |
266 | arch: !!python/tuple [sles12sp2] | |
267 | build: !!python/tuple [std] | |
268 | conf: !!python/tuple [std] | |
3579dc14 | 269 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.11, master] |
568b5cbd MJ |
270 | filter: '' |
271 | - 'lttng-ust_{version}_{buildtype}': | |
272 | buildtype: elbuild | |
273 | arch: !!python/tuple [el8] | |
274 | build: !!python/tuple [std] | |
275 | conf: !!python/tuple [std] | |
276 | liburcu_version: !!python/tuple [stable-0.9, stable-0.10, stable-0.11, master] | |
277 | filter: '' | |
2b68721a MJ |
278 | - 'lttng-ust_{version}_cppcheck' |
279 | - 'lttng-ust_{version}_scan-build' | |
fe16cb00 MJ |
280 | - 'lttng-ust_{version}_{buildtype}': |
281 | buildtype: build | |
282 | version: master | |
16844a6d | 283 | arch: !!python/tuple [amd64] |
fe16cb00 MJ |
284 | build: !!python/tuple [std, dist, oot, oot-dist] |
285 | conf: !!python/tuple [std, agents, debug-rcu] | |
3579dc14 | 286 | liburcu_version: !!python/tuple [stable-0.11, master] |
568b5cbd | 287 | filter: '(build=="std") || (liburcu_version=="master")' |
fe16cb00 MJ |
288 | - 'lttng-ust_{version}_{buildtype}': |
289 | buildtype: portbuild | |
290 | version: master | |
16844a6d | 291 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
fe16cb00 MJ |
292 | build: !!python/tuple [std] |
293 | conf: !!python/tuple [std, agents] | |
3579dc14 | 294 | liburcu_version: !!python/tuple [stable-0.11, master] |
568b5cbd | 295 | filter: '' |
fe16cb00 MJ |
296 | - 'lttng-ust_{version}_{buildtype}': |
297 | buildtype: slesbuild | |
298 | version: master | |
299 | arch: !!python/tuple [sles12sp2] | |
300 | build: !!python/tuple [std] | |
301 | conf: !!python/tuple [std] | |
3579dc14 | 302 | liburcu_version: !!python/tuple [stable-0.11, master] |
568b5cbd MJ |
303 | filter: '' |
304 | - 'lttng-ust_{version}_{buildtype}': | |
305 | buildtype: elbuild | |
306 | version: master | |
307 | arch: !!python/tuple [el8] | |
308 | build: !!python/tuple [std] | |
309 | conf: !!python/tuple [std] | |
310 | liburcu_version: !!python/tuple [stable-0.11, master] | |
311 | filter: '' | |
fe16cb00 MJ |
312 | - 'lttng-ust_{version}_cppcheck': |
313 | version: master | |
314 | - 'lttng-ust_{version}_scan-build': | |
315 | version: master | |
cdb4cba4 MJ |
316 | - 'lttng-ust_{version}_coverity': |
317 | version: master | |
2b68721a | 318 | |
23ea1b88 MJ |
319 | # stable-2.7 |
320 | - 'lttng-ust_{version}_{buildtype}': | |
321 | buildtype: slesbuild | |
322 | version: stable-2.7 | |
323 | arch: !!python/tuple [sles12sp2] | |
324 | build: !!python/tuple [std] | |
325 | conf: !!python/tuple [std] | |
326 | liburcu_version: !!python/tuple [stable-0.9] | |
568b5cbd | 327 | filter: '' |
23ea1b88 | 328 | |
3579dc14 | 329 | - project: |
e04f80ef | 330 | name: lttng-ust-views |
3579dc14 MJ |
331 | views: |
332 | - LTTng-ust |