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 | |
64 | values: | |
ef63064f | 65 | !include: jobs/inc/liburcu-versions.yaml.inc |
2b68721a MJ |
66 | - axis: |
67 | type: user-defined | |
68 | name: build | |
69 | values: '{obj:build}' | |
70 | ||
71 | builders: | |
0349e2c0 JR |
72 | - conditional-step: |
73 | condition-kind: regex-match | |
74 | label: '$conf' | |
75 | regex: (std|agents) | |
76 | on-evaluation-failure: run | |
77 | steps: | |
78 | - copyartifact: | |
79 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
80 | which-build: last-successful | |
81 | stable: false | |
82 | filter: 'build/**' | |
83 | target: 'deps/liburcu' | |
84 | do-not-fingerprint: true | |
85 | ||
86 | - conditional-step: | |
87 | condition-kind: regex-match | |
88 | label: '$conf' | |
89 | regex: (debug-rcu) | |
90 | on-evaluation-failure: run | |
91 | steps: | |
92 | - copyartifact: | |
93 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std | |
94 | which-build: last-successful | |
95 | stable: false | |
96 | filter: 'build/**' | |
97 | target: 'deps/liburcu' | |
98 | do-not-fingerprint: true | |
2b68721a | 99 | - shell: |
ef63064f | 100 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a MJ |
101 | |
102 | # TODO: Scan for open tasks | |
103 | publishers: | |
104 | - tap: | |
1f4fba8c | 105 | results: 'tap/**/*.log' |
2b68721a | 106 | failed-tests-mark-build-as-failure: true |
95654431 | 107 | todo-is-failure: false |
2b68721a MJ |
108 | - warnings: |
109 | console-log-parsers: | |
110 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
111 | total-thresholds: |
112 | unstable: | |
d2c76ee5 MJ |
113 | total-all: 0 |
114 | total-high: 0 | |
115 | total-normal: 0 | |
116 | total-low: 0 | |
2b68721a MJ |
117 | - archive: |
118 | artifacts: 'build/**' | |
119 | allow-empty: false | |
120 | - workspace-cleanup | |
c9b78c7b | 121 | - ircbot: |
95654431 | 122 | strategy: new-failure-and-fixed |
c9b78c7b MJ |
123 | matrix-notifier: only-parent |
124 | channels: | |
125 | - name: '#lttng' | |
2b68721a MJ |
126 | |
127 | ||
128 | - job-template: | |
129 | name: lttng-ust_{version}_cppcheck | |
130 | defaults: lttng-ust | |
131 | ||
132 | triggers: | |
133 | - pollscm: | |
134 | cron: "@daily" | |
135 | ||
136 | builders: | |
137 | - shell: | | |
138 | rm -f lttng-ust-cppcheck.xml | |
73778992 | 139 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml |
2b68721a MJ |
140 | |
141 | publishers: | |
142 | - archive: | |
143 | artifacts: 'lttng-ust-cppcheck.xml' | |
144 | allow-empty: false | |
145 | - cppcheck: | |
146 | pattern: 'lttng-ust-cppcheck.xml' | |
147 | - email: | |
148 | recipients: 'ci-notification@lists.lttng.org' | |
149 | notify-every-unstable-build: true | |
150 | send-to-individuals: false | |
151 | ||
152 | - job-template: | |
153 | name: lttng-ust_{version}_scan-build | |
154 | defaults: lttng-ust | |
155 | node: 'x86-64' | |
156 | ||
157 | triggers: | |
158 | - pollscm: | |
159 | cron: "@daily" | |
160 | ||
161 | builders: | |
c9b78c7b MJ |
162 | - copyartifact: |
163 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
164 | which-build: last-successful | |
3522265a | 165 | stable: false |
c9b78c7b MJ |
166 | filter: 'build/**' |
167 | target: 'deps/liburcu' | |
168 | do-not-fingerprint: true | |
2b68721a | 169 | - shell: |
69f05d59 | 170 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
171 | |
172 | publishers: | |
173 | - html-publisher: | |
174 | name: 'HTML Report' | |
175 | dir: 'scan-build-archive/' | |
176 | files: 'index.html' | |
177 | ||
cdb4cba4 MJ |
178 | - job-template: |
179 | name: lttng-ust_{version}_coverity | |
180 | defaults: lttng-ust | |
181 | node: 'x86-64' | |
182 | ||
183 | triggers: | |
184 | - pollscm: | |
185 | cron: "@daily" | |
186 | ||
187 | wrappers: | |
188 | - workspace-cleanup | |
189 | - timestamps | |
190 | - ansicolor: | |
191 | colormap: xterm | |
192 | - credentials-binding: | |
193 | - username-password-separated: | |
194 | credential-id: lttng-ust_coverity_token | |
195 | username: COVERITY_SCAN_PROJECT_NAME | |
196 | password: COVERITY_SCAN_TOKEN | |
197 | ||
198 | builders: | |
199 | - copyartifact: | |
200 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
201 | which-build: last-successful | |
3522265a | 202 | stable: false |
cdb4cba4 MJ |
203 | filter: 'build/**' |
204 | target: 'deps/liburcu' | |
205 | do-not-fingerprint: true | |
206 | - shell: | |
ef63064f | 207 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
208 | |
209 | publishers: | |
210 | - workspace-cleanup | |
1f4fba8c MJ |
211 | - archive: |
212 | artifacts: 'analysis-results.tgz,cov-int/**' | |
213 | allow-empty: false | |
2b68721a | 214 | |
c9b78c7b | 215 | # TODO |
2b68721a MJ |
216 | - job-template: |
217 | name: lttng-ust_{version}_pylint | |
218 | defaults: lttng-ust | |
219 | node: 'x86-64' | |
220 | ||
221 | scm: [] | |
222 | ||
223 | triggers: | |
224 | - pollscm: | |
225 | cron: "@daily" | |
226 | ||
227 | builders: | |
228 | - copyartifact: | |
67122b96 | 229 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=agents |
2b68721a | 230 | which-build: last-successful |
3522265a | 231 | stable: false |
2b68721a MJ |
232 | filter: 'build/**' |
233 | target: 'deps/lttng-ust' | |
234 | do-not-fingerprint: true | |
235 | - shell: | |
ef63064f | 236 | !include-raw-escape: scripts/lttng-ust/pylint.sh |
2b68721a MJ |
237 | |
238 | publishers: | |
239 | - archive: | |
240 | artifacts: 'pep8.out,pylint.out' | |
241 | - violations: | |
242 | pep8: | |
243 | pattern: pep8.out | |
244 | min: 10 | |
245 | max: 999 | |
246 | unstable: 999 | |
247 | pylint: | |
248 | pattern: pylint.out | |
249 | min: 10 | |
250 | max: 999 | |
251 | unstable: 999 | |
252 | - email: | |
253 | recipients: 'ci-notification@lists.lttng.org' | |
254 | notify-every-unstable-build: true | |
255 | send-to-individuals: false | |
256 | ||
257 | ||
258 | ## Project | |
259 | - project: | |
260 | name: lttng-ust | |
51ca880a MJ |
261 | github_user: lttng |
262 | github_name: lttng-ust | |
2b68721a | 263 | version: |
9beacf91 MJ |
264 | - stable-2.7 |
265 | - stable-2.8 | |
0a9d9a74 | 266 | - stable-2.9 |
b631316e | 267 | - stable-2.10 |
9beacf91 | 268 | - master |
2b68721a MJ |
269 | jobs: |
270 | - 'lttng-ust_{version}_{buildtype}': | |
271 | buildtype: build | |
272 | arch: !!python/tuple [x86-32, x86-64] | |
67122b96 | 273 | build: !!python/tuple [std, dist, oot, oot-dist] |
0349e2c0 | 274 | conf: !!python/tuple [std, agents, debug-rcu] |
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] |
2b68721a MJ |
280 | - 'lttng-ust_{version}_cppcheck' |
281 | - 'lttng-ust_{version}_scan-build' | |
cdb4cba4 MJ |
282 | - 'lttng-ust_{version}_coverity': |
283 | version: master | |
2b68721a | 284 |