jjb: lttng-analyses bt fixes
[lttng-ci.git] / jobs / lttng-ust.yaml
CommitLineData
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
c9b78c7b 120 - ircbot:
95654431 121 strategy: new-failure-and-fixed
c9b78c7b
MJ
122 matrix-notifier: only-parent
123 channels:
124 - name: '#lttng'
2b68721a
MJ
125
126
127- job-template:
128 name: lttng-ust_{version}_cppcheck
129 defaults: lttng-ust
130
131 triggers:
132 - pollscm:
133 cron: "@daily"
134
135 builders:
136 - shell: |
137 rm -f lttng-ust-cppcheck.xml
73778992 138 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml
2b68721a
MJ
139
140 publishers:
141 - archive:
142 artifacts: 'lttng-ust-cppcheck.xml'
143 allow-empty: false
144 - cppcheck:
145 pattern: 'lttng-ust-cppcheck.xml'
146 - email:
147 recipients: 'ci-notification@lists.lttng.org'
148 notify-every-unstable-build: true
149 send-to-individuals: false
150
151- job-template:
152 name: lttng-ust_{version}_scan-build
153 defaults: lttng-ust
154 node: 'x86-64'
155
156 triggers:
157 - pollscm:
158 cron: "@daily"
159
160 builders:
c9b78c7b
MJ
161 - copyartifact:
162 project: liburcu_master_build/arch=x86-64,conf=std,build=std
163 which-build: last-successful
3522265a 164 stable: false
c9b78c7b
MJ
165 filter: 'build/**'
166 target: 'deps/liburcu'
167 do-not-fingerprint: true
2b68721a 168 - shell:
69f05d59 169 !include-raw-escape: scripts/common/scan-build.sh
2b68721a
MJ
170
171 publishers:
172 - html-publisher:
173 name: 'HTML Report'
174 dir: 'scan-build-archive/'
175 files: 'index.html'
176
cdb4cba4
MJ
177- job-template:
178 name: lttng-ust_{version}_coverity
179 defaults: lttng-ust
180 node: 'x86-64'
181
182 triggers:
183 - pollscm:
184 cron: "@daily"
185
186 wrappers:
187 - workspace-cleanup
188 - timestamps
189 - ansicolor:
190 colormap: xterm
191 - credentials-binding:
192 - username-password-separated:
193 credential-id: lttng-ust_coverity_token
194 username: COVERITY_SCAN_PROJECT_NAME
195 password: COVERITY_SCAN_TOKEN
196
197 builders:
198 - copyartifact:
199 project: liburcu_master_build/arch=x86-64,conf=std,build=std
200 which-build: last-successful
3522265a 201 stable: false
cdb4cba4
MJ
202 filter: 'build/**'
203 target: 'deps/liburcu'
204 do-not-fingerprint: true
205 - shell:
ef63064f 206 !include-raw-escape: scripts/common/coverity.sh
cdb4cba4
MJ
207
208 publishers:
209 - workspace-cleanup
1f4fba8c
MJ
210 - archive:
211 artifacts: 'analysis-results.tgz,cov-int/**'
212 allow-empty: false
2b68721a 213
c9b78c7b 214# TODO
2b68721a
MJ
215- job-template:
216 name: lttng-ust_{version}_pylint
217 defaults: lttng-ust
218 node: 'x86-64'
219
220 scm: []
221
222 triggers:
223 - pollscm:
224 cron: "@daily"
225
226 builders:
227 - copyartifact:
67122b96 228 project: lttng-ust-{version}/arch=x86-64,build=std,conf=agents
2b68721a 229 which-build: last-successful
3522265a 230 stable: false
2b68721a
MJ
231 filter: 'build/**'
232 target: 'deps/lttng-ust'
233 do-not-fingerprint: true
234 - shell:
ef63064f 235 !include-raw-escape: scripts/lttng-ust/pylint.sh
2b68721a
MJ
236
237 publishers:
238 - archive:
239 artifacts: 'pep8.out,pylint.out'
240 - violations:
241 pep8:
242 pattern: pep8.out
243 min: 10
244 max: 999
245 unstable: 999
246 pylint:
247 pattern: pylint.out
248 min: 10
249 max: 999
250 unstable: 999
251 - email:
252 recipients: 'ci-notification@lists.lttng.org'
253 notify-every-unstable-build: true
254 send-to-individuals: false
255
256
257## Project
258- project:
259 name: lttng-ust
51ca880a
MJ
260 github_user: lttng
261 github_name: lttng-ust
2b68721a 262 version:
9beacf91
MJ
263 - stable-2.7
264 - stable-2.8
0a9d9a74 265 - stable-2.9
b631316e 266 - stable-2.10
9beacf91 267 - master
2b68721a
MJ
268 jobs:
269 - 'lttng-ust_{version}_{buildtype}':
270 buildtype: build
271 arch: !!python/tuple [x86-32, x86-64]
67122b96 272 build: !!python/tuple [std, dist, oot, oot-dist]
0349e2c0 273 conf: !!python/tuple [std, agents, debug-rcu]
81bf613d 274 liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master]
2b68721a
MJ
275 - 'lttng-ust_{version}_{buildtype}':
276 buildtype: portbuild
3b3282a6 277 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
2b68721a 278 build: !!python/tuple [std]
67122b96 279 conf: !!python/tuple [std, agents]
81bf613d
MJ
280 liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master]
281 - 'lttng-ust_{version}_{buildtype}':
282 buildtype: slesbuild
283 arch: !!python/tuple [sles12sp2]
284 build: !!python/tuple [std]
285 conf: !!python/tuple [std]
286 liburcu_version: !!python/tuple [stable-0.8, stable-0.9, stable-0.10, master]
2b68721a
MJ
287 - 'lttng-ust_{version}_cppcheck'
288 - 'lttng-ust_{version}_scan-build'
cdb4cba4
MJ
289 - 'lttng-ust_{version}_coverity':
290 version: master
2b68721a 291
This page took 0.035365 seconds and 4 git commands to generate.