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 | ||
13 | logrotate: | |
14 | daysToKeep: -1 | |
15 | numToKeep: 2 | |
16 | artifactDaysToKeep: -1 | |
17 | artifactNumToKeep: -1 | |
18 | ||
19 | wrappers: | |
20 | - workspace-cleanup | |
21 | - timestamps | |
22 | - ansicolor | |
23 | ||
24 | scm: | |
25 | - git: | |
9a00aa82 | 26 | url: git://github.com/lttng/lttng-ust.git |
2b68721a | 27 | browser: githubweb |
9a00aa82 | 28 | browser-url: https://github.com/lttng/lttng-ust |
2b68721a MJ |
29 | branches: |
30 | - origin/{version} | |
31 | ||
32 | triggers: | |
33 | - pollscm: | |
34 | cron: "@hourly" | |
35 | ||
36 | properties: | |
37 | - github: | |
9a00aa82 | 38 | url: https://github.com/lttng/lttng-ust |
2b68721a MJ |
39 | |
40 | ||
41 | ## Templates | |
42 | - job-template: | |
43 | name: lttng-ust_{version}_{buildtype} | |
44 | defaults: lttng-ust | |
45 | ||
46 | project-type: matrix | |
ca8c6144 | 47 | node: 'master' # Applies only to matrix flyweight task |
2b68721a MJ |
48 | execution-strategy: |
49 | combination-filter: | | |
50 | (build=="std") || (liburcu_version=="master") | |
51 | axes: | |
52 | - axis: | |
53 | type: slave | |
54 | name: arch | |
55 | values: '{obj:arch}' | |
56 | - axis: | |
57 | type: user-defined | |
58 | name: conf | |
95654431 | 59 | values: '{obj:conf}' |
2b68721a MJ |
60 | - axis: |
61 | type: user-defined | |
62 | name: liburcu_version | |
63 | values: | |
ef63064f | 64 | !include: jobs/inc/liburcu-versions.yaml.inc |
2b68721a MJ |
65 | - axis: |
66 | type: user-defined | |
67 | name: build | |
68 | values: '{obj:build}' | |
69 | ||
70 | builders: | |
71 | - copyartifact: | |
72 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
73 | which-build: last-successful | |
74 | stable: true | |
75 | filter: 'build/**' | |
76 | target: 'deps/liburcu' | |
77 | do-not-fingerprint: true | |
78 | - shell: | |
ef63064f | 79 | !include-raw-escape: scripts/lttng-ust/build.sh |
2b68721a MJ |
80 | |
81 | # TODO: Scan for open tasks | |
82 | publishers: | |
83 | - tap: | |
84 | results: 'tap/**/*.tap' | |
85 | failed-tests-mark-build-as-failure: true | |
95654431 | 86 | todo-is-failure: false |
2b68721a MJ |
87 | - warnings: |
88 | console-log-parsers: | |
89 | - 'GNU Make + GNU C Compiler (gcc)' | |
99e596d1 MJ |
90 | #total-thresholds: |
91 | # failed: | |
92 | # total-all: 0 | |
93 | # total-high: 0 | |
94 | # total-normal: 0 | |
95 | # total-low: 0 | |
2b68721a MJ |
96 | - archive: |
97 | artifacts: 'build/**' | |
98 | allow-empty: false | |
99 | - workspace-cleanup | |
c9b78c7b | 100 | - ircbot: |
95654431 | 101 | strategy: new-failure-and-fixed |
c9b78c7b MJ |
102 | matrix-notifier: only-parent |
103 | channels: | |
104 | - name: '#lttng' | |
2b68721a MJ |
105 | |
106 | ||
107 | - job-template: | |
108 | name: lttng-ust_{version}_cppcheck | |
109 | defaults: lttng-ust | |
110 | ||
111 | triggers: | |
112 | - pollscm: | |
113 | cron: "@daily" | |
114 | ||
115 | builders: | |
116 | - shell: | | |
117 | rm -f lttng-ust-cppcheck.xml | |
118 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-ust-cppcheck.xml | |
119 | ||
120 | publishers: | |
121 | - archive: | |
122 | artifacts: 'lttng-ust-cppcheck.xml' | |
123 | allow-empty: false | |
124 | - cppcheck: | |
125 | pattern: 'lttng-ust-cppcheck.xml' | |
126 | - email: | |
127 | recipients: 'ci-notification@lists.lttng.org' | |
128 | notify-every-unstable-build: true | |
129 | send-to-individuals: false | |
130 | ||
131 | - job-template: | |
132 | name: lttng-ust_{version}_scan-build | |
133 | defaults: lttng-ust | |
134 | node: 'x86-64' | |
135 | ||
136 | triggers: | |
137 | - pollscm: | |
138 | cron: "@daily" | |
139 | ||
140 | builders: | |
c9b78c7b MJ |
141 | - copyartifact: |
142 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
143 | which-build: last-successful | |
144 | stable: true | |
145 | filter: 'build/**' | |
146 | target: 'deps/liburcu' | |
147 | do-not-fingerprint: true | |
2b68721a | 148 | - shell: |
ef63064f | 149 | !include-raw-escape: scripts/lttng-ust/scan-build.sh |
2b68721a MJ |
150 | |
151 | publishers: | |
152 | - html-publisher: | |
153 | name: 'HTML Report' | |
154 | dir: 'scan-build-archive/' | |
155 | files: 'index.html' | |
156 | ||
cdb4cba4 MJ |
157 | - job-template: |
158 | name: lttng-ust_{version}_coverity | |
159 | defaults: lttng-ust | |
160 | node: 'x86-64' | |
161 | ||
162 | triggers: | |
163 | - pollscm: | |
164 | cron: "@daily" | |
165 | ||
166 | wrappers: | |
167 | - workspace-cleanup | |
168 | - timestamps | |
169 | - ansicolor: | |
170 | colormap: xterm | |
171 | - credentials-binding: | |
172 | - username-password-separated: | |
173 | credential-id: lttng-ust_coverity_token | |
174 | username: COVERITY_SCAN_PROJECT_NAME | |
175 | password: COVERITY_SCAN_TOKEN | |
176 | ||
177 | builders: | |
178 | - copyartifact: | |
179 | project: liburcu_master_build/arch=x86-64,conf=std,build=std | |
180 | which-build: last-successful | |
181 | stable: true | |
182 | filter: 'build/**' | |
183 | target: 'deps/liburcu' | |
184 | do-not-fingerprint: true | |
185 | - shell: | |
ef63064f | 186 | !include-raw-escape: scripts/common/coverity.sh |
cdb4cba4 MJ |
187 | |
188 | publishers: | |
189 | - workspace-cleanup | |
2b68721a | 190 | |
c9b78c7b | 191 | # TODO |
2b68721a MJ |
192 | - job-template: |
193 | name: lttng-ust_{version}_pylint | |
194 | defaults: lttng-ust | |
195 | node: 'x86-64' | |
196 | ||
197 | scm: [] | |
198 | ||
199 | triggers: | |
200 | - pollscm: | |
201 | cron: "@daily" | |
202 | ||
203 | builders: | |
204 | - copyartifact: | |
205 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=python-agent | |
206 | which-build: last-successful | |
207 | stable: true | |
208 | filter: 'build/**' | |
209 | target: 'deps/lttng-ust' | |
210 | do-not-fingerprint: true | |
211 | - shell: | |
ef63064f | 212 | !include-raw-escape: scripts/lttng-ust/pylint.sh |
2b68721a MJ |
213 | |
214 | publishers: | |
215 | - archive: | |
216 | artifacts: 'pep8.out,pylint.out' | |
217 | - violations: | |
218 | pep8: | |
219 | pattern: pep8.out | |
220 | min: 10 | |
221 | max: 999 | |
222 | unstable: 999 | |
223 | pylint: | |
224 | pattern: pylint.out | |
225 | min: 10 | |
226 | max: 999 | |
227 | unstable: 999 | |
228 | - email: | |
229 | recipients: 'ci-notification@lists.lttng.org' | |
230 | notify-every-unstable-build: true | |
231 | send-to-individuals: false | |
232 | ||
233 | ||
234 | ## Project | |
235 | - project: | |
236 | name: lttng-ust | |
237 | version: | |
ef63064f | 238 | !include: jobs/inc/lttng-ust-versions.yaml.inc |
2b68721a MJ |
239 | jobs: |
240 | - 'lttng-ust_{version}_{buildtype}': | |
241 | buildtype: build | |
242 | arch: !!python/tuple [x86-32, x86-64] | |
243 | build: !!python/tuple [std, oot, dist] | |
95654431 | 244 | conf: !!python/tuple [std, java-agent, python-agent] |
2b68721a MJ |
245 | - 'lttng-ust_{version}_{buildtype}': |
246 | buildtype: portbuild | |
3b3282a6 | 247 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
2b68721a | 248 | build: !!python/tuple [std] |
95654431 | 249 | conf: !!python/tuple [std, java-agent, python-agent] |
2b68721a MJ |
250 | - 'lttng-ust_{version}_cppcheck' |
251 | - 'lttng-ust_{version}_scan-build' | |
cdb4cba4 MJ |
252 | - 'lttng-ust_{version}_coverity': |
253 | version: master | |
2b68721a | 254 |