| 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/{github_user}/{github_name}.git |
| 25 | browser: githubweb |
| 26 | browser-url: https://github.com/{github_user}/{github_name} |
| 27 | branches: |
| 28 | - origin/{version} |
| 29 | basedir: src/lttng-analyses |
| 30 | |
| 31 | triggers: |
| 32 | - pollscm: |
| 33 | cron: "@hourly" |
| 34 | |
| 35 | properties: |
| 36 | - github: |
| 37 | url: https://github.com/{github_user}/{github_name} |
| 38 | |
| 39 | |
| 40 | ## Templates |
| 41 | - job-template: |
| 42 | name: lttng-analyses_{version}_build |
| 43 | defaults: lttng-analyses |
| 44 | |
| 45 | project-type: matrix |
| 46 | node: 'master' # Applies only to matrix flyweight task |
| 47 | axes: |
| 48 | - axis: |
| 49 | type: slave |
| 50 | name: arch |
| 51 | values: '{obj:arch}' |
| 52 | - axis: |
| 53 | type: user-defined |
| 54 | name: babeltrace_version |
| 55 | values: '{obj:babeltrace_version}' |
| 56 | |
| 57 | builders: |
| 58 | - copyartifact: |
| 59 | project: babeltrace_${{babeltrace_version}}_build/arch=${{arch}},build=std,conf=python-bindings |
| 60 | which-build: last-successful |
| 61 | stable: true |
| 62 | filter: 'build/**' |
| 63 | target: 'deps/babeltrace' |
| 64 | - shell: |
| 65 | !include-raw-escape: scripts/lttng-analyses/build.sh |
| 66 | |
| 67 | # publishers: |
| 68 | # - archive: |
| 69 | # artifacts: 'build/**' |
| 70 | # allow-empty: false |
| 71 | |
| 72 | |
| 73 | - job-template: |
| 74 | name: lttng-analyses_{version}_pylint |
| 75 | defaults: lttng-analyses |
| 76 | node: 'x86-64' |
| 77 | |
| 78 | triggers: |
| 79 | - pollscm: |
| 80 | cron: "@daily" |
| 81 | |
| 82 | builders: |
| 83 | - copyartifact: |
| 84 | project: babeltrace_master_build/arch=x86-64,build=std,conf=python-bindings |
| 85 | which-build: last-successful |
| 86 | stable: true |
| 87 | filter: 'build/**' |
| 88 | target: 'deps/babeltrace' |
| 89 | - shell: |
| 90 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
| 91 | |
| 92 | publishers: |
| 93 | - archive: |
| 94 | artifacts: 'pep8.out,pylint.out' |
| 95 | - violations: |
| 96 | pep8: |
| 97 | pattern: pep8.out |
| 98 | min: 10 |
| 99 | max: 999 |
| 100 | unstable: 999 |
| 101 | pylint: |
| 102 | pattern: pylint.out |
| 103 | min: 10 |
| 104 | max: 999 |
| 105 | unstable: 999 |
| 106 | - email: |
| 107 | recipients: 'ci-notification@lists.lttng.org' |
| 108 | notify-every-unstable-build: true |
| 109 | send-to-individuals: false |
| 110 | |
| 111 | |
| 112 | ## Project |
| 113 | - project: |
| 114 | name: lttng-analyses |
| 115 | github_user: lttng |
| 116 | github_name: lttng-analyses |
| 117 | version: |
| 118 | - master |
| 119 | jobs: |
| 120 | - 'lttng-analyses_{version}_build': |
| 121 | arch: !!python/tuple [x86-32, x86-64] |
| 122 | babeltrace_version: !!python/tuple [stable-1.3, stable-1.4, master] |
| 123 | - 'lttng-analyses_{version}_pylint' |
| 124 | |