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 | |
47 | node: 'x86-32 || x86-64' # Applies only to matrix flyweight task | |
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 | |
59 | values: | |
60 | - std | |
61 | - java-agent | |
62 | - python-agent | |
63 | - axis: | |
64 | type: user-defined | |
65 | name: liburcu_version | |
66 | values: | |
67 | !include jobs/inc/liburcu-versions.yaml.inc | |
68 | - axis: | |
69 | type: user-defined | |
70 | name: build | |
71 | values: '{obj:build}' | |
72 | ||
73 | builders: | |
74 | - copyartifact: | |
75 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std | |
76 | which-build: last-successful | |
77 | stable: true | |
78 | filter: 'build/**' | |
79 | target: 'deps/liburcu' | |
80 | do-not-fingerprint: true | |
81 | - shell: | |
82 | !include-raw-escape scripts/lttng-ust/build.sh | |
83 | ||
84 | # TODO: Scan for open tasks | |
85 | publishers: | |
86 | - tap: | |
87 | results: 'tap/**/*.tap' | |
88 | failed-tests-mark-build-as-failure: true | |
89 | - warnings: | |
90 | console-log-parsers: | |
91 | - 'GNU Make + GNU C Compiler (gcc)' | |
99e596d1 MJ |
92 | #total-thresholds: |
93 | # failed: | |
94 | # total-all: 0 | |
95 | # total-high: 0 | |
96 | # total-normal: 0 | |
97 | # total-low: 0 | |
2b68721a MJ |
98 | - archive: |
99 | artifacts: 'build/**' | |
100 | allow-empty: false | |
101 | - workspace-cleanup | |
c9b78c7b MJ |
102 | - ircbot: |
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 | |
119 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 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: | |
c9b78c7b MJ |
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 | |
2b68721a MJ |
149 | - shell: |
150 | !include-raw-escape scripts/lttng-ust/scan-build.sh | |
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 | |
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 | |
2b68721a | 191 | |
c9b78c7b | 192 | # TODO |
2b68721a MJ |
193 | - job-template: |
194 | name: lttng-ust_{version}_pylint | |
195 | defaults: lttng-ust | |
196 | node: 'x86-64' | |
197 | ||
198 | scm: [] | |
199 | ||
200 | triggers: | |
201 | - pollscm: | |
202 | cron: "@daily" | |
203 | ||
204 | builders: | |
205 | - copyartifact: | |
206 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=python-agent | |
207 | which-build: last-successful | |
208 | stable: true | |
209 | filter: 'build/**' | |
210 | target: 'deps/lttng-ust' | |
211 | do-not-fingerprint: true | |
212 | - shell: | |
213 | !include-raw-escape scripts/lttng-ust/pylint.sh | |
214 | ||
215 | publishers: | |
216 | - archive: | |
217 | artifacts: 'pep8.out,pylint.out' | |
218 | - violations: | |
219 | pep8: | |
220 | pattern: pep8.out | |
221 | min: 10 | |
222 | max: 999 | |
223 | unstable: 999 | |
224 | pylint: | |
225 | pattern: pylint.out | |
226 | min: 10 | |
227 | max: 999 | |
228 | unstable: 999 | |
229 | - email: | |
230 | recipients: 'ci-notification@lists.lttng.org' | |
231 | notify-every-unstable-build: true | |
232 | send-to-individuals: false | |
233 | ||
234 | ||
235 | ## Project | |
236 | - project: | |
237 | name: lttng-ust | |
238 | version: | |
239 | !include jobs/inc/lttng-ust-versions.yaml.inc | |
240 | jobs: | |
241 | - 'lttng-ust_{version}_{buildtype}': | |
242 | buildtype: build | |
243 | arch: !!python/tuple [x86-32, x86-64] | |
244 | build: !!python/tuple [std, oot, dist] | |
245 | - 'lttng-ust_{version}_{buildtype}': | |
246 | buildtype: portbuild | |
247 | arch: !!python/tuple [armhf, powerpc] | |
248 | build: !!python/tuple [std] | |
249 | - 'lttng-ust_{version}_cppcheck' | |
250 | - 'lttng-ust_{version}_scan-build' | |
cdb4cba4 MJ |
251 | - 'lttng-ust_{version}_coverity': |
252 | version: master | |
2b68721a | 253 |