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