jjb: update dev_upstream jobs
[lttng-ci.git] / jobs / librseq.yaml
CommitLineData
ae855ba1
MJ
1# {project}_{version}_{jobtype}
2# librseq_stable-0.8_build
3#
4# jobtypes:
5# - build
6# - portbuild
ae855ba1
MJ
7# - coverity
8# - scan-build
9# - pylint
10
11- defaults:
12 name: librseq
13 description: |
14
15 <p>Job is managed by Jenkins Job Builder.</p>
16
17 project-type: freestyle
18
19 wrappers:
5745cfaa
MJ
20 - ansicolor: &librseq_wrapper_ansicolor_defaults
21 colormap: xterm
22 - timeout: &librseq_wrapper_timeout_defaults
ae855ba1
MJ
23 timeout: 10
24 fail: true
733146f2 25 type: no-activity
ae855ba1 26 - timestamps
5745cfaa 27 - workspace-cleanup
ae855ba1
MJ
28
29 scm:
30 - git:
4d27af8f 31 url: https://github.com/{github_user}/{github_name}.git
ae855ba1
MJ
32 browser: githubweb
33 browser-url: https://github.com/{github_user}/{github_name}
34 branches:
35 - origin/{version}
36 basedir: src/librseq
37 skip-tag: true
38
39 triggers:
40 - pollscm:
41 cron: "@hourly"
42
43 properties:
44 - inject:
45 properties-content: |
46 PROJECT_NAME=librseq
47 - build-discarder:
3b228cdd
MJ
48 num-to-keep: 10
49 artifact-num-to-keep: 2
ae855ba1
MJ
50 - github:
51 url: https://github.com/{github_user}/{github_name}
52
53
54## Anchors
5745cfaa
MJ
55- librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults
56 name: 'librseq_matrix_axes_defaults'
ae855ba1
MJ
57 project-type: matrix
58 node: 'master' # Applies only to matrix flyweight task
9a07183c
MJ
59 execution-strategy:
60 touchstone:
61 expr: '{touchstone}'
62 result: unstable
ae855ba1 63 axes:
5745cfaa 64 - axis: &librseq_matrix_axis_platform
ae855ba1 65 type: slave
9a07183c
MJ
66 name: platform
67 values: '{obj:platforms}'
5745cfaa 68 - axis: &librseq_matrix_axis_conf
ae855ba1
MJ
69 type: user-defined
70 name: conf
9a07183c 71 values: '{obj:confs}'
5745cfaa 72 - axis: &librseq_matrix_axis_build
ae855ba1
MJ
73 type: user-defined
74 name: build
9a07183c 75 values: '{obj:builds}'
ae855ba1 76
5745cfaa
MJ
77- librseq_matrix_axes_cc: &librseq_matrix_axes_cc
78 name: 'librseq_matrix_axes_cc'
ae855ba1
MJ
79 project-type: matrix
80 node: 'master' # Applies only to matrix flyweight task
9a07183c
MJ
81 execution-strategy:
82 touchstone:
83 expr: '{touchstone}'
84 result: unstable
ae855ba1 85 axes:
5745cfaa
MJ
86 - axis: *librseq_matrix_axis_platform
87 - axis: *librseq_matrix_axis_conf
88 - axis: *librseq_matrix_axis_build
89 - axis: &librseq_matrix_axis_cc
ae855ba1
MJ
90 type: user-defined
91 name: cc
9a07183c 92 values: '{obj:ccs}'
ae855ba1 93
5745cfaa
MJ
94- librseq_builders_defaults: &librseq_builders_defaults
95 name: 'librseq_builders_defaults'
ae855ba1
MJ
96 builders:
97 - shell:
51c9c62d
MJ
98 !include-raw-escape:
99 - scripts/common/print.sh
100 - scripts/librseq/build.sh
ae855ba1 101
5745cfaa
MJ
102- librseq_publishers_defaults: &librseq_publishers_defaults
103 name: 'librseq_publishers_defaults'
ae855ba1 104 publishers:
5745cfaa 105 - tap: &librseq_publisher_tap_defaults
10c9bf80
MJ
106 results: 'tap/**/*.log'
107 fail-if-no-results: true
108 failed-tests-mark-build-as-failure: true
4f04deeb
MJ
109 include-comment-diagnostics: true
110 output-tap-to-console: false
10c9bf80 111 todo-is-failure: false
5745cfaa
MJ
112 - raw: &librseq_publisher_warnings-ng_defaults
113 xml: |
114 <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
115 <analysisTools>
116 <io.jenkins.plugins.analysis.warnings.Gcc4>
117 <id/>
118 <name/>
119 <jenkins plugin="plugin-util-api"/>
120 <pattern/>
121 <reportEncoding/>
122 <skipSymbolicLinks>false</skipSymbolicLinks>
123 </io.jenkins.plugins.analysis.warnings.Gcc4>
5745cfaa
MJ
124 </analysisTools>
125 <sourceCodeEncoding/>
126 <sourceDirectory/>
127 <sourceDirectories/>
128 <ignoreQualityGate>false</ignoreQualityGate>
129 <ignoreFailedBuilds>true</ignoreFailedBuilds>
130 <failOnError>false</failOnError>
131 <healthy>0</healthy>
132 <unhealthy>0</unhealthy>
133 <minimumSeverity plugin="analysis-model-api">
134 <name>LOW</name>
135 </minimumSeverity>
136 <filters/>
137 <isEnabledForFailure>true</isEnabledForFailure>
138 <isAggregatingResults>true</isAggregatingResults>
139 <isBlameDisabled>false</isBlameDisabled>
140 <skipPublishingChecks>true</skipPublishingChecks>
141 <publishAllIssues>false</publishAllIssues>
142 <qualityGates>
143 <io.jenkins.plugins.analysis.core.util.QualityGate>
144 <threshold>1</threshold>
145 <type>TOTAL</type>
146 <status>WARNING</status>
147 </io.jenkins.plugins.analysis.core.util.QualityGate>
148 </qualityGates>
149 <trendChartType>AGGREGATION_TOOLS</trendChartType>
150 <scm/>
151 </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
152 - archive: &librseq_publisher_archive_defaults
4174b905 153 artifacts: 'build/**,tap/**,log/**'
ae855ba1 154 allow-empty: false
5745cfaa
MJ
155 - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults
156 clean-if:
157 - failure: false
158 - email-ext: &librseq_publisher_email-ext_defaults
ae855ba1
MJ
159 recipients: '{obj:email_to}'
160 reply-to: ci-notification@lists.lttng.org
161 always: false
162 unstable: false
163 first-failure: true
164 first-unstable: true
165 not-built: false
166 aborted: false
167 regression: false
168 failure: false
169 second-failure: false
170 improvement: false
171 still-failing: false
172 success: false
173 fixed: false
174 fixed-unhealthy: true
175 still-unstable: false
176 pre-build: false
177 matrix-trigger: only-parent
178 send-to:
179 - recipients
180
5745cfaa
MJ
181- librseq_publishers_gerrit: &librseq_publishers_gerrit
182 name: 'librseq_publishers_gerrit'
10c9bf80 183 publishers:
5745cfaa
MJ
184 - tap: *librseq_publisher_tap_defaults
185 - raw: *librseq_publisher_warnings-ng_defaults
186 - archive: *librseq_publisher_archive_defaults
187 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
10c9bf80
MJ
188
189
ae855ba1
MJ
190## Templates
191- job-template:
192 name: librseq_{version}_{buildtype}
193 defaults: librseq
194
5745cfaa
MJ
195 <<: *librseq_matrix_axes_defaults
196 <<: *librseq_builders_defaults
197 <<: *librseq_publishers_defaults
ae855ba1
MJ
198
199- job-template:
200 name: librseq_{version}_{cctype}
201 defaults: librseq
202
5745cfaa
MJ
203 <<: *librseq_matrix_axes_cc
204 <<: *librseq_builders_defaults
205 <<: *librseq_publishers_defaults
ae855ba1 206
10c9bf80
MJ
207- job-template:
208 name: dev_gerrit_librseq_{buildtype}
209 defaults: librseq
210 concurrent: true
211
212 scm:
213 - git:
214 url: https://review.lttng.org/librseq
215 refspec: 'refs/changes/*:refs/changes/*'
216 branches:
217 - '$GERRIT_REFSPEC'
218 basedir: src/librseq
219 skip-tag: true
220
221 triggers:
222 - gerrit:
223 trigger-on:
224 - comment-added-event:
225 approval-category: 'CI-Build'
226 approval-value: 1
227 projects:
228 - project-compare-type: 'PLAIN'
229 project-pattern: 'librseq'
230 branches:
231 - branch-compare-type: 'ANT'
232 branch-pattern: '**'
233
5745cfaa
MJ
234 <<: *librseq_matrix_axes_defaults
235 <<: *librseq_builders_defaults
236 <<: *librseq_publishers_gerrit
10c9bf80
MJ
237
238 properties:
239 - inject:
240 properties-content: |
241 PROJECT_NAME=librseq
242 - build-discarder:
243 days-to-keep: 1
244 - throttle:
245 option: 'category'
246 categories:
247 - 'gerrit-{buildtype}'
248
ae855ba1
MJ
249- job-template:
250 name: librseq_{version}_scan-build
251 defaults: librseq
252 node: 'amd64'
253
254 triggers:
255 - pollscm:
256 cron: "@daily"
257
258 builders:
259 - shell:
260 !include-raw-escape: scripts/common/scan-build.sh
261
262 publishers:
263 - html-publisher:
264 name: 'HTML Report'
265 dir: 'scan-build-archive/'
266 files: 'index.html'
5745cfaa 267 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
ae855ba1
MJ
268
269- job-template:
270 name: librseq_{version}_coverity
271 defaults: librseq
272 node: 'amd64'
273
274 triggers:
275 - pollscm:
276 cron: "@daily"
277
278 wrappers:
5745cfaa
MJ
279 - ansicolor: *librseq_wrapper_ansicolor_defaults
280 - timeout: *librseq_wrapper_timeout_defaults
ae855ba1 281 - timestamps
5745cfaa 282 - workspace-cleanup
ae855ba1
MJ
283 - credentials-binding:
284 - username-password-separated:
285 credential-id: librseq_coverity_token
286 username: COVERITY_SCAN_PROJECT_NAME
287 password: COVERITY_SCAN_TOKEN
288
289 builders:
290 - shell:
291 !include-raw-escape: scripts/common/coverity.sh
292
293 publishers:
294 - workspace-cleanup
295 - archive:
296 artifacts: 'analysis-results.tgz,cov-int/**'
297 allow-empty: false
5745cfaa 298 - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
ae855ba1
MJ
299
300- view-template:
72600ad8 301 name: 'Librseq'
ae855ba1
MJ
302 description: 'Restartable sequences'
303 view-type: list
b4c748a8 304 regex: 'librseq_.*'
ae855ba1
MJ
305
306
307## Project
308- project:
309 name: librseq
310 github_user: compudj
311 github_name: librseq
312 email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com'
313 version:
314 - master
315 jobs:
316 - 'librseq_{version}_{buildtype}':
5745cfaa 317 buildtype: linuxbuild
9a07183c
MJ
318 platforms: !!python/tuple [jammy-amd64]
319 builds: !!python/tuple [std, oot, dist, oot-dist]
320 confs: !!python/tuple [std, static]
321 touchstone: '(build == "std") && (conf == "std")'
ae855ba1
MJ
322 - 'librseq_{version}_{cctype}':
323 cctype: gccbuild
9a07183c
MJ
324 platforms: !!python/tuple [jammy-amd64]
325 builds: !!python/tuple [std]
326 confs: !!python/tuple [std, static]
327 ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12]
328 touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")'
ae855ba1
MJ
329 - 'librseq_{version}_{cctype}':
330 cctype: clangbuild
9a07183c
MJ
331 platforms: !!python/tuple [jammy-amd64]
332 builds: !!python/tuple [std]
333 confs: !!python/tuple [std, static]
334 ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14]
335 touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")'
ae855ba1
MJ
336 - 'librseq_{version}_{buildtype}':
337 buildtype: portbuild
0ecb7652 338 platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
9a07183c
MJ
339 builds: !!python/tuple [std]
340 confs: !!python/tuple [std, static]
341 touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
ae855ba1 342
10c9bf80
MJ
343- project:
344 name: gerrit-librseq
345 github_user: compudj
346 github_name: librseq
347 jobs:
348 - 'dev_gerrit_librseq_{buildtype}':
5745cfaa 349 buildtype: linuxbuild
9a07183c
MJ
350 platforms: !!python/tuple [jammy-amd64]
351 builds: !!python/tuple [std, oot, dist, oot-dist]
352 confs: !!python/tuple [std, static]
353 touchstone: '(build == "std") && (conf == "std")'
10c9bf80 354
ae855ba1
MJ
355- project:
356 name: librseq-views
357 views:
72600ad8 358 - Librseq
This page took 0.039357 seconds and 4 git commands to generate.