| 1 | - defaults: |
| 2 | name: lttng-tools |
| 3 | description: | |
| 4 | The lttng-tools project provides a session daemon (lttng-sessiond) |
| 5 | that acts as a tracing registry, the "lttng" command line for tracing |
| 6 | control, a lttng-ctl library for tracing control and a lttng-relayd |
| 7 | for network streaming. |
| 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: |
| 26 | url: git://github.com/lttng/{github_user}/{github_name}.git |
| 27 | browser: githubweb |
| 28 | browser-url: https://github.com/{github_user}/{github_name} |
| 29 | branches: |
| 30 | - origin/{version} |
| 31 | |
| 32 | triggers: |
| 33 | - pollscm: |
| 34 | cron: "@hourly" |
| 35 | |
| 36 | properties: |
| 37 | - github: |
| 38 | url: https://github.com/{github_user}/{github_name} |
| 39 | |
| 40 | |
| 41 | ## Templates |
| 42 | - job-template: |
| 43 | name: lttng-tools_{version}_{buildtype} |
| 44 | defaults: lttng-tools |
| 45 | |
| 46 | project-type: matrix |
| 47 | node: 'master' # 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: '{obj:conf}' |
| 60 | - axis: |
| 61 | type: user-defined |
| 62 | name: liburcu_version |
| 63 | values: '{obj:urcuversion}' |
| 64 | - axis: |
| 65 | type: user-defined |
| 66 | name: babeltrace_version |
| 67 | values: '{obj:babelversion}' |
| 68 | - axis: |
| 69 | type: user-defined |
| 70 | name: build |
| 71 | values: '{obj:build}' |
| 72 | |
| 73 | properties: |
| 74 | - throttle: |
| 75 | max-per-node: 1 |
| 76 | option: 'category' |
| 77 | categories: |
| 78 | - 'lttng-tools' |
| 79 | matrix-builds: false |
| 80 | matrix-configs: true |
| 81 | |
| 82 | builders: |
| 83 | - conditional-step: |
| 84 | condition-kind: regex-match |
| 85 | label: '$conf' |
| 86 | regex: (std|static) |
| 87 | on-evaluation-failure: run |
| 88 | steps: |
| 89 | - copyartifact: |
| 90 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std |
| 91 | which-build: last-successful |
| 92 | stable: true |
| 93 | filter: 'build/**' |
| 94 | target: 'deps/liburcu' |
| 95 | do-not-fingerprint: true |
| 96 | - copyartifact: |
| 97 | project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std |
| 98 | which-build: last-successful |
| 99 | stable: true |
| 100 | filter: 'build/**' |
| 101 | target: 'deps/babeltrace' |
| 102 | do-not-fingerprint: true |
| 103 | - copyartifact: |
| 104 | project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std |
| 105 | which-build: last-successful |
| 106 | stable: true |
| 107 | filter: 'build/**' |
| 108 | target: 'deps/lttng-ust' |
| 109 | do-not-fingerprint: true |
| 110 | - conditional-step: |
| 111 | condition-kind: regex-match |
| 112 | label: '$conf' |
| 113 | regex: (python-bindings|no-ust) |
| 114 | on-evaluation-failure: run |
| 115 | steps: |
| 116 | - copyartifact: |
| 117 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std |
| 118 | which-build: last-successful |
| 119 | stable: true |
| 120 | filter: 'build/**' |
| 121 | target: 'deps/liburcu' |
| 122 | do-not-fingerprint: true |
| 123 | - copyartifact: |
| 124 | project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std |
| 125 | which-build: last-successful |
| 126 | stable: true |
| 127 | filter: 'build/**' |
| 128 | target: 'deps/babeltrace' |
| 129 | do-not-fingerprint: true |
| 130 | - copyartifact: |
| 131 | project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std |
| 132 | which-build: last-successful |
| 133 | stable: true |
| 134 | filter: 'build/**' |
| 135 | target: 'deps/lttng-ust' |
| 136 | do-not-fingerprint: true |
| 137 | - conditional-step: |
| 138 | condition-kind: regex-match |
| 139 | label: '$conf' |
| 140 | regex: (java-agent|python-agent) |
| 141 | on-evaluation-failure: run |
| 142 | steps: |
| 143 | - copyartifact: |
| 144 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std |
| 145 | which-build: last-successful |
| 146 | stable: true |
| 147 | filter: 'build/**' |
| 148 | target: 'deps/liburcu' |
| 149 | do-not-fingerprint: true |
| 150 | - copyartifact: |
| 151 | project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std |
| 152 | which-build: last-successful |
| 153 | stable: true |
| 154 | filter: 'build/**' |
| 155 | target: 'deps/babeltrace' |
| 156 | do-not-fingerprint: true |
| 157 | - copyartifact: |
| 158 | project: lttng-ust_{version}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std |
| 159 | which-build: last-successful |
| 160 | stable: true |
| 161 | filter: 'build/**' |
| 162 | target: 'deps/lttng-ust' |
| 163 | do-not-fingerprint: true |
| 164 | - shell: |
| 165 | !include-raw-escape: scripts/lttng-tools/build.sh |
| 166 | |
| 167 | # TODO: Scan for open tasks |
| 168 | publishers: |
| 169 | - tap: |
| 170 | results: 'tap/**/*.tap' |
| 171 | failed-tests-mark-build-as-failure: true |
| 172 | todo-is-failure: false |
| 173 | - warnings: |
| 174 | console-log-parsers: |
| 175 | - 'GNU Make + GNU C Compiler (gcc)' |
| 176 | total-thresholds: |
| 177 | unstable: |
| 178 | total-all: 1 |
| 179 | total-high: 1 |
| 180 | total-normal: 1 |
| 181 | total-low: 1 |
| 182 | - archive: |
| 183 | artifacts: 'build/**' |
| 184 | allow-empty: false |
| 185 | - workspace-cleanup |
| 186 | - ircbot: |
| 187 | strategy: new-failure-and-fixed |
| 188 | matrix-notifier: only-parent |
| 189 | channels: |
| 190 | - name: '#lttng' |
| 191 | |
| 192 | |
| 193 | - job-template: |
| 194 | name: lttng-tools_{version}_cppcheck |
| 195 | defaults: lttng-tools |
| 196 | |
| 197 | triggers: |
| 198 | - pollscm: |
| 199 | cron: "@daily" |
| 200 | |
| 201 | builders: |
| 202 | - shell: | |
| 203 | rm -f lttng-tools-cppcheck.xml |
| 204 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml |
| 205 | |
| 206 | publishers: |
| 207 | - archive: |
| 208 | artifacts: 'lttng-tools-cppcheck.xml' |
| 209 | allow-empty: false |
| 210 | - cppcheck: |
| 211 | pattern: 'lttng-tools-cppcheck.xml' |
| 212 | - email: |
| 213 | recipients: 'ci-notification@lists.lttng.org' |
| 214 | notify-every-unstable-build: true |
| 215 | send-to-individuals: false |
| 216 | |
| 217 | - job-template: |
| 218 | name: lttng-tools_{version}_scan-build |
| 219 | defaults: lttng-tools |
| 220 | node: 'x86-64' |
| 221 | |
| 222 | triggers: |
| 223 | - pollscm: |
| 224 | cron: "@daily" |
| 225 | |
| 226 | builders: |
| 227 | - copyartifact: |
| 228 | project: liburcu_{urcuversion}_build/arch=x86-64,conf=std,build=std |
| 229 | which-build: last-successful |
| 230 | stable: true |
| 231 | filter: 'build/**' |
| 232 | target: 'deps/liburcu' |
| 233 | do-not-fingerprint: true |
| 234 | - copyartifact: |
| 235 | project: lttng-ust_{version}_build/liburcu_version={urcuversion},arch=x86-64,conf=std,build=std |
| 236 | which-build: last-successful |
| 237 | stable: true |
| 238 | filter: 'build/**' |
| 239 | target: 'deps/lttng-ust' |
| 240 | do-not-fingerprint: true |
| 241 | - shell: |
| 242 | !include-raw-escape: scripts/lttng-tools/scan-build.sh |
| 243 | |
| 244 | publishers: |
| 245 | - html-publisher: |
| 246 | name: 'HTML Report' |
| 247 | dir: 'scan-build-archive/' |
| 248 | files: 'index.html' |
| 249 | |
| 250 | - job-template: |
| 251 | name: lttng-tools_{version}_coverity |
| 252 | defaults: lttng-tools |
| 253 | node: 'x86-64' |
| 254 | |
| 255 | triggers: |
| 256 | - pollscm: |
| 257 | cron: "@daily" |
| 258 | |
| 259 | wrappers: |
| 260 | - workspace-cleanup |
| 261 | - timestamps |
| 262 | - ansicolor: |
| 263 | colormap: xterm |
| 264 | - credentials-binding: |
| 265 | - username-password-separated: |
| 266 | credential-id: lttng-tools_coverity_token |
| 267 | username: COVERITY_SCAN_PROJECT_NAME |
| 268 | password: COVERITY_SCAN_TOKEN |
| 269 | |
| 270 | builders: |
| 271 | - copyartifact: |
| 272 | project: liburcu_master_build/arch=x86-64,conf=std,build=std |
| 273 | which-build: last-successful |
| 274 | stable: true |
| 275 | filter: 'build/**' |
| 276 | target: 'deps/liburcu' |
| 277 | do-not-fingerprint: true |
| 278 | - copyartifact: |
| 279 | project: lttng-ust_{version}_build/liburcu_version={version},arch=x86-64,conf=std,build=std |
| 280 | which-build: last-successful |
| 281 | stable: true |
| 282 | filter: 'build/**' |
| 283 | target: 'deps/lttng-ust' |
| 284 | do-not-fingerprint: true |
| 285 | - shell: |
| 286 | !include-raw-escape: scripts/common/coverity.sh |
| 287 | |
| 288 | publishers: |
| 289 | - workspace-cleanup |
| 290 | |
| 291 | # TODO |
| 292 | - job-template: |
| 293 | name: lttng-tools_{version}_pylint |
| 294 | defaults: lttng-tools |
| 295 | node: 'x86-64' |
| 296 | |
| 297 | scm: [] |
| 298 | |
| 299 | triggers: |
| 300 | - pollscm: |
| 301 | cron: "@daily" |
| 302 | |
| 303 | builders: |
| 304 | - copyartifact: |
| 305 | project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent |
| 306 | which-build: last-successful |
| 307 | stable: true |
| 308 | filter: 'build/**' |
| 309 | target: 'deps/lttng-tools' |
| 310 | do-not-fingerprint: true |
| 311 | - shell: |
| 312 | !include-raw-escape: scripts/lttng-tools/pylint.sh |
| 313 | |
| 314 | publishers: |
| 315 | - archive: |
| 316 | artifacts: 'pep8.out,pylint.out' |
| 317 | - violations: |
| 318 | pep8: |
| 319 | pattern: pep8.out |
| 320 | min: 10 |
| 321 | max: 999 |
| 322 | unstable: 999 |
| 323 | pylint: |
| 324 | pattern: pylint.out |
| 325 | min: 10 |
| 326 | max: 999 |
| 327 | unstable: 999 |
| 328 | - email: |
| 329 | recipients: 'ci-notification@lists.lttng.org' |
| 330 | notify-every-unstable-build: true |
| 331 | send-to-individuals: false |
| 332 | |
| 333 | |
| 334 | ## Project |
| 335 | - project: |
| 336 | name: lttng-tools |
| 337 | github_user: lttng |
| 338 | github_name: lttng-tools |
| 339 | version: |
| 340 | !include: jobs/inc/lttng-tools-versions.yaml.inc |
| 341 | jobs: |
| 342 | - 'lttng-tools_{version}_{buildtype}': |
| 343 | buildtype: build |
| 344 | version: master |
| 345 | arch: !!python/tuple [x86-32, x86-64] |
| 346 | build: !!python/tuple [std, oot, dist] |
| 347 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
| 348 | urcuversion: !!python/tuple [master] |
| 349 | babelversion: !!python/tuple [master] |
| 350 | - 'lttng-tools_{version}_{buildtype}': |
| 351 | buildtype: portbuild |
| 352 | version: master |
| 353 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 354 | build: !!python/tuple [std] |
| 355 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
| 356 | urcuversion: !!python/tuple [master] |
| 357 | babelversion: !!python/tuple [master] |
| 358 | - 'lttng-tools_{version}_{buildtype}': |
| 359 | buildtype: build |
| 360 | version: stable-2.7 |
| 361 | arch: !!python/tuple [x86-32, x86-64] |
| 362 | build: !!python/tuple [std, oot, dist] |
| 363 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
| 364 | urcuversion: !!python/tuple [stable-0.9] |
| 365 | babelversion: !!python/tuple [stable-1.3] |
| 366 | - 'lttng-tools_{version}_{buildtype}': |
| 367 | buildtype: portbuild |
| 368 | version: stable-2.7 |
| 369 | arch: !!python/tuple [armhf, arm64, powerpc] |
| 370 | build: !!python/tuple [std] |
| 371 | conf: !!python/tuple [std, no-ust, python-bindings, java-agent, python-agent] |
| 372 | urcuversion: !!python/tuple [stable-0.9] |
| 373 | babelversion: !!python/tuple [stable-1.3] |
| 374 | - 'lttng-tools_{version}_{buildtype}': |
| 375 | buildtype: build |
| 376 | version: stable-2.6 |
| 377 | arch: !!python/tuple [x86-32, x86-64] |
| 378 | build: !!python/tuple [std, oot, dist] |
| 379 | conf: !!python/tuple [std, no-ust, python-bindings] |
| 380 | urcuversion: !!python/tuple [stable-0.9] |
| 381 | babelversion: !!python/tuple [stable-1.3] |
| 382 | - 'lttng-tools_{version}_{buildtype}': |
| 383 | buildtype: portbuild |
| 384 | version: stable-2.6 |
| 385 | arch: !!python/tuple [armhf, arm64, powerpc] |
| 386 | build: !!python/tuple [std] |
| 387 | conf: !!python/tuple [std, no-ust, python-bindings] |
| 388 | urcuversion: !!python/tuple [stable-0.9] |
| 389 | babelversion: !!python/tuple [stable-1.3] |
| 390 | - 'lttng-tools_{version}_cppcheck' |
| 391 | - 'lttng-tools_{version}_scan-build': |
| 392 | version: master |
| 393 | urcuversion: master |
| 394 | - 'lttng-tools_{version}_scan-build': |
| 395 | version: stable-2.7 |
| 396 | urcuversion: stable-0.9 |
| 397 | - 'lttng-tools_{version}_scan-build': |
| 398 | version: stable-2.6 |
| 399 | urcuversion: stable-0.9 |
| 400 | #- 'lttng-tools_{version}_pylint' |
| 401 | - 'lttng-tools_{version}_coverity': |
| 402 | version: master |
| 403 | |