Merge pull request #8 from PSRCode/master
[lttng-ci.git] / jobs / lttng-ust.yaml
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
13 wrappers:
14 - workspace-cleanup
15 - timestamps
16 - ansicolor
17
18 scm:
19 - git:
20 url: git://github.com/{github_user}/{github_name}.git
21 browser: githubweb
22 browser-url: https://github.com/{github_user}/{github_name}
23 branches:
24 - origin/{version}
25 basedir: src/lttng-ust
26 skip-tag: true
27
28 triggers:
29 - pollscm:
30 cron: "@hourly"
31
32 properties:
33 - inject:
34 properties-content: |
35 PROJECT_NAME=lttng-ust
36 - build-discarder:
37 num-to-keep: 2
38 - github:
39 url: https://github.com/{github_user}/{github_name}
40
41
42 ## Templates
43 - job-template:
44 name: lttng-ust_{version}_{buildtype}
45 defaults: lttng-ust
46
47 project-type: matrix
48 node: 'master' # Applies only to matrix flyweight task
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
60 values: '{obj:conf}'
61 - axis:
62 type: user-defined
63 name: liburcu_version
64 values:
65 !include: jobs/inc/liburcu-versions.yaml.inc
66 - axis:
67 type: user-defined
68 name: build
69 values: '{obj:build}'
70
71 builders:
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
99 - shell:
100 !include-raw-escape: scripts/lttng-ust/build.sh
101
102 # TODO: Scan for open tasks
103 publishers:
104 - tap:
105 results: 'tap/**/*.log'
106 failed-tests-mark-build-as-failure: true
107 todo-is-failure: false
108 - warnings:
109 console-log-parsers:
110 - 'GNU Make + GNU C Compiler (gcc)'
111 total-thresholds:
112 unstable:
113 total-all: 0
114 total-high: 0
115 total-normal: 0
116 total-low: 0
117 - archive:
118 artifacts: 'build/**'
119 allow-empty: false
120 - workspace-cleanup
121 - ircbot:
122 strategy: new-failure-and-fixed
123 matrix-notifier: only-parent
124 channels:
125 - name: '#lttng'
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
139 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml
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:
162 - copyartifact:
163 project: liburcu_master_build/arch=x86-64,conf=std,build=std
164 which-build: last-successful
165 stable: false
166 filter: 'build/**'
167 target: 'deps/liburcu'
168 do-not-fingerprint: true
169 - shell:
170 !include-raw-escape: scripts/common/scan-build.sh
171
172 publishers:
173 - html-publisher:
174 name: 'HTML Report'
175 dir: 'scan-build-archive/'
176 files: 'index.html'
177
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
202 stable: false
203 filter: 'build/**'
204 target: 'deps/liburcu'
205 do-not-fingerprint: true
206 - shell:
207 !include-raw-escape: scripts/common/coverity.sh
208
209 publishers:
210 - workspace-cleanup
211 - archive:
212 artifacts: 'analysis-results.tgz,cov-int/**'
213 allow-empty: false
214
215 # TODO
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:
229 project: lttng-ust-{version}/arch=x86-64,build=std,conf=agents
230 which-build: last-successful
231 stable: false
232 filter: 'build/**'
233 target: 'deps/lttng-ust'
234 do-not-fingerprint: true
235 - shell:
236 !include-raw-escape: scripts/lttng-ust/pylint.sh
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
261 github_user: lttng
262 github_name: lttng-ust
263 version:
264 - stable-2.7
265 - stable-2.8
266 - stable-2.9
267 - master
268 jobs:
269 - 'lttng-ust_{version}_{buildtype}':
270 buildtype: build
271 arch: !!python/tuple [x86-32, x86-64]
272 build: !!python/tuple [std, dist, oot, oot-dist]
273 conf: !!python/tuple [std, agents, debug-rcu]
274 - 'lttng-ust_{version}_{buildtype}':
275 buildtype: portbuild
276 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
277 build: !!python/tuple [std]
278 conf: !!python/tuple [std, agents]
279 - 'lttng-ust_{version}_cppcheck'
280 - 'lttng-ust_{version}_scan-build'
281 - 'lttng-ust_{version}_coverity':
282 version: master
283
This page took 0.085379 seconds and 5 git commands to generate.