jjb: lttng-ust: move unsupported branches to 'dev_' namespace
[lttng-ci.git] / jobs / librseq.yaml
1 # {project}_{version}_{jobtype}
2 # librseq_stable-0.8_build
3 #
4 # jobtypes:
5 # - build
6 # - portbuild
7 # - cppcheck
8 # - coverity
9 # - scan-build
10 # - pylint
11
12 - defaults:
13 name: librseq
14 description: |
15
16 <p>Job is managed by Jenkins Job Builder.</p>
17
18 project-type: freestyle
19
20 wrappers:
21 - ansicolor
22 - timeout:
23 timeout: 10
24 fail: true
25 type: no-activity
26 - timestamps
27 - workspace-cleanup:
28 clean-if:
29 - failure: false
30
31 scm:
32 - git:
33 url: https://github.com/{github_user}/{github_name}.git
34 browser: githubweb
35 browser-url: https://github.com/{github_user}/{github_name}
36 branches:
37 - origin/{version}
38 basedir: src/librseq
39 skip-tag: true
40
41 triggers:
42 - pollscm:
43 cron: "@hourly"
44
45 properties:
46 - inject:
47 properties-content: |
48 PROJECT_NAME=librseq
49 - build-discarder:
50 num-to-keep: 2
51 - github:
52 url: https://github.com/{github_user}/{github_name}
53
54
55 ## Anchors
56 - librseq_build_axes_defaults: &librseq_build_axes_defaults
57 name: 'librseq_build_axes_defaults'
58 project-type: matrix
59 node: 'master' # Applies only to matrix flyweight task
60 axes:
61 - axis:
62 type: slave
63 name: arch
64 values: '{obj:arch}'
65 - axis:
66 type: user-defined
67 name: conf
68 values: '{obj:conf}'
69 - axis:
70 type: user-defined
71 name: build
72 values: '{obj:build}'
73
74 - librseq_build_axes_cc: &librseq_build_axes_cc
75 name: 'librseq_build_axes_cc'
76 project-type: matrix
77 node: 'master' # Applies only to matrix flyweight task
78 axes:
79 - axis:
80 type: slave
81 name: arch
82 values: '{obj:arch}'
83 - axis:
84 type: user-defined
85 name: conf
86 values: '{obj:conf}'
87 - axis:
88 type: user-defined
89 name: build
90 values: '{obj:build}'
91 - axis:
92 type: user-defined
93 name: cc
94 values: '{obj:cc}'
95
96 - librseq_build_builders_defaults: &librseq_build_builders_defaults
97 name: 'librseq_build_builders_defaults'
98 builders:
99 - shell:
100 !include-raw-escape:
101 - scripts/common/print.sh
102 - scripts/librseq/build.sh
103
104 - librseq_build_publishers_defaults: &librseq_build_publishers_defaults
105 name: 'librseq_build_publishers_defaults'
106 publishers:
107 - tap:
108 results: 'tap/**/*.log'
109 fail-if-no-results: true
110 failed-tests-mark-build-as-failure: true
111 todo-is-failure: false
112 - warnings:
113 console-log-parsers:
114 - 'GNU Make + GNU C Compiler (gcc)'
115 total-thresholds:
116 unstable:
117 total-all: 0
118 total-high: 0
119 total-normal: 0
120 total-low: 0
121 - archive:
122 artifacts: 'build/**,tap/**'
123 allow-empty: false
124 - ircbot:
125 strategy: new-failure-and-fixed
126 matrix-notifier: only-parent
127 channels:
128 - name: '#lttng'
129 - email-ext:
130 recipients: '{obj:email_to}'
131 reply-to: ci-notification@lists.lttng.org
132 always: false
133 unstable: false
134 first-failure: true
135 first-unstable: true
136 not-built: false
137 aborted: false
138 regression: false
139 failure: false
140 second-failure: false
141 improvement: false
142 still-failing: false
143 success: false
144 fixed: false
145 fixed-unhealthy: true
146 still-unstable: false
147 pre-build: false
148 matrix-trigger: only-parent
149 send-to:
150 - recipients
151
152 - librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit
153 name: 'librseq_build_publishers_gerrit'
154 publishers:
155 - tap:
156 results: 'tap/**/*.log'
157 fail-if-no-results: true
158 failed-tests-mark-build-as-failure: true
159 todo-is-failure: false
160 - warnings:
161 console-log-parsers:
162 - 'GNU Make + GNU C Compiler (gcc)'
163 total-thresholds:
164 failed:
165 total-all: 0
166 total-high: 0
167 total-normal: 0
168 total-low: 0
169 - archive:
170 artifacts: 'build/**,tap/**'
171 allow-empty: false
172
173
174 ## Templates
175 - job-template:
176 name: librseq_{version}_{buildtype}
177 defaults: librseq
178
179 <<: *librseq_build_axes_defaults
180 <<: *librseq_build_builders_defaults
181 <<: *librseq_build_publishers_defaults
182
183 - job-template:
184 name: librseq_{version}_{cctype}
185 defaults: librseq
186
187 <<: *librseq_build_axes_cc
188 <<: *librseq_build_builders_defaults
189 <<: *librseq_build_publishers_defaults
190
191 - job-template:
192 name: librseq_{version}_cppcheck
193 defaults: librseq
194
195 triggers:
196 - pollscm:
197 cron: "@daily"
198
199 builders:
200 - shell: |
201 rm -f cppcheck-result.xml
202 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml
203
204 publishers:
205 - archive:
206 artifacts: 'cppcheck-result.xml'
207 allow-empty: false
208 - cppcheck:
209 pattern: 'cppcheck-result.xml'
210 - email-ext:
211 recipients: '{obj:email_to}'
212 reply-to: ci-notification@lists.lttng.org
213 always: false
214 unstable: false
215 first-failure: true
216 first-unstable: false
217 not-built: false
218 aborted: false
219 regression: false
220 failure: false
221 second-failure: false
222 improvement: false
223 still-failing: false
224 success: false
225 fixed: false
226 fixed-unhealthy: true
227 still-unstable: true
228 pre-build: false
229 matrix-trigger: only-parent
230 send-to:
231 - recipients
232
233 - job-template:
234 name: dev_gerrit_librseq_{buildtype}
235 defaults: librseq
236 concurrent: true
237
238 scm:
239 - git:
240 url: https://review.lttng.org/librseq
241 refspec: 'refs/changes/*:refs/changes/*'
242 branches:
243 - '$GERRIT_REFSPEC'
244 basedir: src/librseq
245 skip-tag: true
246
247 triggers:
248 - gerrit:
249 trigger-on:
250 - comment-added-event:
251 approval-category: 'CI-Build'
252 approval-value: 1
253 projects:
254 - project-compare-type: 'PLAIN'
255 project-pattern: 'librseq'
256 branches:
257 - branch-compare-type: 'ANT'
258 branch-pattern: '**'
259
260 <<: *librseq_build_axes_defaults
261 <<: *librseq_build_builders_defaults
262 <<: *librseq_build_publishers_gerrit
263
264 properties:
265 - inject:
266 properties-content: |
267 PROJECT_NAME=librseq
268 - build-discarder:
269 days-to-keep: 1
270 - throttle:
271 option: 'category'
272 categories:
273 - 'gerrit-{buildtype}'
274
275 - job-template:
276 name: librseq_{version}_scan-build
277 defaults: librseq
278 node: 'amd64'
279
280 triggers:
281 - pollscm:
282 cron: "@daily"
283
284 builders:
285 - shell:
286 !include-raw-escape: scripts/common/scan-build.sh
287
288 publishers:
289 - html-publisher:
290 name: 'HTML Report'
291 dir: 'scan-build-archive/'
292 files: 'index.html'
293
294 - job-template:
295 name: librseq_{version}_coverity
296 defaults: librseq
297 node: 'amd64'
298
299 triggers:
300 - pollscm:
301 cron: "@daily"
302
303 wrappers:
304 - ansicolor
305 - timeout:
306 timeout: 10
307 fail: true
308 type: no-activity
309 - timestamps
310 - workspace-cleanup:
311 clean-if:
312 - failure: false
313 - credentials-binding:
314 - username-password-separated:
315 credential-id: librseq_coverity_token
316 username: COVERITY_SCAN_PROJECT_NAME
317 password: COVERITY_SCAN_TOKEN
318
319 builders:
320 - shell:
321 !include-raw-escape: scripts/common/coverity.sh
322
323 publishers:
324 - workspace-cleanup
325 - archive:
326 artifacts: 'analysis-results.tgz,cov-int/**'
327 allow-empty: false
328
329 - view-template:
330 name: 'rseq'
331 description: 'Restartable sequences'
332 view-type: list
333 regex: 'librseq_.*'
334
335
336 ## Project
337 - project:
338 name: librseq
339 github_user: compudj
340 github_name: librseq
341 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
342 version:
343 - master
344 jobs:
345 - 'librseq_{version}_{buildtype}':
346 buildtype: build
347 arch: !!python/tuple [amd64]
348 build: !!python/tuple [std, oot, dist, oot-dist]
349 conf: !!python/tuple [std, static]
350 - 'librseq_{version}_{cctype}':
351 cctype: gccbuild
352 arch: !!python/tuple [amd64]
353 build: !!python/tuple [std]
354 conf: !!python/tuple [std, static]
355 cc: !!python/tuple [gcc-4.8, gcc-5, gcc-6, gcc-7, gcc-8]
356 - 'librseq_{version}_{cctype}':
357 cctype: clangbuild
358 arch: !!python/tuple [amd64]
359 build: !!python/tuple [std]
360 conf: !!python/tuple [std, static]
361 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
362 - 'librseq_{version}_{buildtype}':
363 buildtype: portbuild
364 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
365 build: !!python/tuple [std]
366 conf: !!python/tuple [std, static]
367 # - 'librseq_{version}_cppcheck'
368 # - 'librseq_{version}_scan-build'
369 # - 'librseq_{version}_coverity':
370 # version: master
371
372 - project:
373 name: gerrit-librseq
374 github_user: compudj
375 github_name: librseq
376 jobs:
377 - 'dev_gerrit_librseq_{buildtype}':
378 buildtype: build
379 arch: !!python/tuple [amd64]
380 build: !!python/tuple [std, oot, dist, oot-dist]
381 conf: !!python/tuple [std, static]
382
383 - project:
384 name: librseq-views
385 views:
386 - rseq
This page took 0.047024 seconds and 4 git commands to generate.