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: | |
72 | - copyartifact: | |
73 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
74 | which-build: last-successful | |
3522265a | 75 | stable: false |
2b68721a MJ |
76 | filter: 'build/**' |
77 | target: 'deps/liburcu' | |
78 | do-not-fingerprint: true | |
79 | - shell: | |
ef63064f | 80 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a MJ |
81 | |
82 | # TODO: Scan for open tasks | |
83 | publishers: | |
84 | - tap: | |
1f4fba8c | 85 | results: 'tap/**/*.log' |
2b68721a | 86 | failed-tests-mark-build-as-failure: true |
95654431 | 87 | todo-is-failure: false |
2b68721a MJ |
88 | - warnings: |
89 | console-log-parsers: | |
90 | - 'GNU Make + GNU C Compiler (gcc)' | |
51ca880a MJ |
91 | total-thresholds: |
92 | unstable: | |
d2c76ee5 MJ |
93 | total-all: 0 |
94 | total-high: 0 | |
95 | total-normal: 0 | |
96 | total-low: 0 | |
2b68721a MJ |
97 | - archive: |
98 | artifacts: 'build/**' | |
99 | allow-empty: false | |
100 | - workspace-cleanup | |
c9b78c7b | 101 | - ircbot: |
95654431 | 102 | strategy: new-failure-and-fixed |
c9b78c7b MJ |
103 | matrix-notifier: only-parent |
104 | channels: | |
105 | - name: '#lttng' | |
2b68721a MJ |
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 | |
73778992 | 119 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-ust 2> lttng-ust-cppcheck.xml |
2b68721a MJ |
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: | |
c9b78c7b MJ |
142 | - copyartifact: |
143 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
144 | which-build: last-successful | |
3522265a | 145 | stable: false |
c9b78c7b MJ |
146 | filter: 'build/**' |
147 | target: 'deps/liburcu' | |
148 | do-not-fingerprint: true | |
2b68721a | 149 | - shell: |
69f05d59 | 150 | !include-raw-escape: scripts/common/scan-build.sh |
2b68721a MJ |
151 | |
152 | publishers: | |
153 | - html-publisher: | |
154 | name: 'HTML Report' | |
155 | dir: 'scan-build-archive/' | |
156 | files: 'index.html' | |
157 | ||
cdb4cba4 MJ |
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 | |
3522265a | 182 | stable: false |
cdb4cba4 MJ |
183 | filter: 'build/**' |
184 | target: 'deps/liburcu' | |
185 | do-not-fingerprint: true | |
186 | - shell: | |
ef63064f | 187 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
188 | |
189 | publishers: | |
190 | - workspace-cleanup | |
1f4fba8c MJ |
191 | - archive: |
192 | artifacts: 'analysis-results.tgz,cov-int/**' | |
193 | allow-empty: false | |
2b68721a | 194 | |
c9b78c7b | 195 | # TODO |
2b68721a MJ |
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: | |
67122b96 | 209 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=agents |
2b68721a | 210 | which-build: last-successful |
3522265a | 211 | stable: false |
2b68721a MJ |
212 | filter: 'build/**' |
213 | target: 'deps/lttng-ust' | |
214 | do-not-fingerprint: true | |
215 | - shell: | |
ef63064f | 216 | !include-raw-escape: scripts/lttng-ust/pylint.sh |
2b68721a MJ |
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 | |
51ca880a MJ |
241 | github_user: lttng |
242 | github_name: lttng-ust | |
2b68721a | 243 | version: |
9beacf91 MJ |
244 | - stable-2.7 |
245 | - stable-2.8 | |
0a9d9a74 | 246 | - stable-2.9 |
9beacf91 | 247 | - master |
2b68721a MJ |
248 | jobs: |
249 | - 'lttng-ust_{version}_{buildtype}': | |
250 | buildtype: build | |
251 | arch: !!python/tuple [x86-32, x86-64] | |
67122b96 MJ |
252 | build: !!python/tuple [std, dist, oot, oot-dist] |
253 | conf: !!python/tuple [std, agents] | |
2b68721a MJ |
254 | - 'lttng-ust_{version}_{buildtype}': |
255 | buildtype: portbuild | |
3b3282a6 | 256 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
2b68721a | 257 | build: !!python/tuple [std] |
67122b96 | 258 | conf: !!python/tuple [std, agents] |
2b68721a MJ |
259 | - 'lttng-ust_{version}_cppcheck' |
260 | - 'lttng-ust_{version}_scan-build' | |
cdb4cba4 MJ |
261 | - 'lttng-ust_{version}_coverity': |
262 | version: master | |
2b68721a | 263 |