| 1 | - defaults: |
| 2 | name: lttng-analyses |
| 3 | description: | |
| 4 | LTTng analyses python scripts. |
| 5 | |
| 6 | <p>Job is managed by Jenkins Job Builder.</p> |
| 7 | |
| 8 | project-type: freestyle |
| 9 | |
| 10 | logrotate: |
| 11 | daysToKeep: -1 |
| 12 | numToKeep: 2 |
| 13 | artifactDaysToKeep: -1 |
| 14 | artifactNumToKeep: -1 |
| 15 | |
| 16 | wrappers: |
| 17 | - workspace-cleanup |
| 18 | - timestamps |
| 19 | - ansicolor: |
| 20 | colormap: xterm |
| 21 | |
| 22 | scm: |
| 23 | - git: |
| 24 | url: git://github.com/lttng/lttng-analyses.git |
| 25 | browser: githubweb |
| 26 | browser-url: https://github.com/lttng/lttng-analyses |
| 27 | branches: |
| 28 | - origin/{version} |
| 29 | |
| 30 | triggers: |
| 31 | - pollscm: |
| 32 | cron: "@hourly" |
| 33 | |
| 34 | properties: |
| 35 | - github: |
| 36 | url: https://github.com/lttng/lttng-analyses |
| 37 | |
| 38 | |
| 39 | ## Templates |
| 40 | - job-template: |
| 41 | name: lttng-analyses_{version}_build |
| 42 | defaults: lttng-analyses |
| 43 | |
| 44 | project-type: matrix |
| 45 | node: 'master' # Applies only to matrix flyweight task |
| 46 | axes: |
| 47 | - axis: |
| 48 | type: slave |
| 49 | name: arch |
| 50 | values: '{obj:arch}' |
| 51 | |
| 52 | builders: |
| 53 | - copyartifact: |
| 54 | project: babeltrace_master_build/arch=${{arch}},build=std,conf=python-bindings |
| 55 | which-build: last-successful |
| 56 | stable: true |
| 57 | filter: 'build/**' |
| 58 | target: 'deps/babeltrace' |
| 59 | - shell: |
| 60 | !include-raw-escape scripts/lttng-analyses/build.sh |
| 61 | |
| 62 | # publishers: |
| 63 | # - archive: |
| 64 | # artifacts: 'build/**' |
| 65 | # allow-empty: false |
| 66 | |
| 67 | |
| 68 | - job-template: |
| 69 | name: lttng-analyses_{version}_pylint |
| 70 | defaults: lttng-analyses |
| 71 | node: 'x86-64' |
| 72 | |
| 73 | triggers: |
| 74 | - pollscm: |
| 75 | cron: "@daily" |
| 76 | |
| 77 | builders: |
| 78 | - copyartifact: |
| 79 | project: babeltrace_master_build/arch=x86-64,build=std,conf=python-bindings |
| 80 | which-build: last-successful |
| 81 | stable: true |
| 82 | filter: 'build/**' |
| 83 | target: 'deps/babeltrace' |
| 84 | - shell: |
| 85 | !include-raw-escape scripts/lttng-analyses/pylint.sh |
| 86 | |
| 87 | publishers: |
| 88 | - archive: |
| 89 | artifacts: 'pep8.out,pylint.out' |
| 90 | - violations: |
| 91 | pep8: |
| 92 | pattern: pep8.out |
| 93 | min: 10 |
| 94 | max: 999 |
| 95 | unstable: 999 |
| 96 | pylint: |
| 97 | pattern: pylint.out |
| 98 | min: 10 |
| 99 | max: 999 |
| 100 | unstable: 999 |
| 101 | - email: |
| 102 | recipients: 'ci-notification@lists.lttng.org' |
| 103 | notify-every-unstable-build: true |
| 104 | send-to-individuals: false |
| 105 | |
| 106 | |
| 107 | ## Project |
| 108 | - project: |
| 109 | name: lttng-analyses |
| 110 | version: |
| 111 | - master |
| 112 | jobs: |
| 113 | - 'lttng-analyses_{version}_build': |
| 114 | arch: !!python/tuple [x86-32, x86-64] |
| 115 | - 'lttng-analyses_{version}_pylint' |
| 116 | |