| 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 | wrappers: |
| 11 | - workspace-cleanup |
| 12 | - timestamps |
| 13 | - ansicolor: |
| 14 | colormap: xterm |
| 15 | - credentials-binding: |
| 16 | - username-password-separated: |
| 17 | credential-id: lttng-analyses_codecov_token |
| 18 | username: CODECOV_PROJECT_NAME |
| 19 | password: CODECOV_TOKEN |
| 20 | |
| 21 | scm: |
| 22 | - git: |
| 23 | url: git://github.com/{github_user}/{github_name}.git |
| 24 | browser: githubweb |
| 25 | browser-url: https://github.com/{github_user}/{github_name} |
| 26 | branches: |
| 27 | - origin/{version} |
| 28 | basedir: src/lttng-analyses |
| 29 | skip-tag: true |
| 30 | |
| 31 | triggers: |
| 32 | - pollscm: |
| 33 | cron: "@hourly" |
| 34 | |
| 35 | properties: |
| 36 | - build-discarder: |
| 37 | num-to-keep: 2 |
| 38 | - github: |
| 39 | url: https://github.com/{github_user}/{github_name} |
| 40 | |
| 41 | |
| 42 | ## Templates |
| 43 | - job-template: |
| 44 | name: lttng-analyses_{version}_build |
| 45 | defaults: lttng-analyses |
| 46 | |
| 47 | project-type: matrix |
| 48 | node: 'master' # Applies only to matrix flyweight task |
| 49 | axes: |
| 50 | - axis: |
| 51 | type: slave |
| 52 | name: arch |
| 53 | values: '{obj:arch}' |
| 54 | - axis: |
| 55 | type: user-defined |
| 56 | name: babeltrace_version |
| 57 | values: '{obj:babeltrace_version}' |
| 58 | |
| 59 | builders: |
| 60 | - copyartifact: |
| 61 | project: babeltrace_${{babeltrace_version}}_build/arch=${{arch}},build=std,conf=python-bindings |
| 62 | which-build: last-successful |
| 63 | stable: false |
| 64 | filter: 'build/**' |
| 65 | target: 'deps/babeltrace' |
| 66 | - shell: |
| 67 | !include-raw-escape: scripts/lttng-analyses/build.sh |
| 68 | |
| 69 | publishers: |
| 70 | # - archive: |
| 71 | # artifacts: 'build/**' |
| 72 | # allow-empty: false |
| 73 | - email-ext: |
| 74 | recipients: '{obj:email_to}' |
| 75 | reply-to: ci-notification@lists.lttng.org |
| 76 | always: false |
| 77 | unstable: false |
| 78 | first-failure: true |
| 79 | first-unstable: true |
| 80 | not-built: false |
| 81 | aborted: false |
| 82 | regression: false |
| 83 | failure: false |
| 84 | second-failure: false |
| 85 | improvement: false |
| 86 | still-failing: false |
| 87 | success: false |
| 88 | fixed: false |
| 89 | fixed-unhealthy: true |
| 90 | still-unstable: false |
| 91 | pre-build: false |
| 92 | matrix-trigger: only-parent |
| 93 | send-to: |
| 94 | - recipients |
| 95 | |
| 96 | - job-template: |
| 97 | name: lttng-analyses_{version}_pylint |
| 98 | defaults: lttng-analyses |
| 99 | node: 'amd64' |
| 100 | |
| 101 | triggers: |
| 102 | - pollscm: |
| 103 | cron: "@daily" |
| 104 | |
| 105 | builders: |
| 106 | - copyartifact: |
| 107 | project: babeltrace_{babeltrace_version}_build/arch=amd64,build=std,conf=python-bindings |
| 108 | which-build: last-successful |
| 109 | stable: false |
| 110 | filter: 'build/**' |
| 111 | target: 'deps/babeltrace' |
| 112 | - shell: |
| 113 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
| 114 | |
| 115 | publishers: |
| 116 | - archive: |
| 117 | artifacts: 'pep8.out,pylint.out' |
| 118 | - violations: |
| 119 | pep8: |
| 120 | pattern: pep8.out |
| 121 | min: 10 |
| 122 | max: 999 |
| 123 | unstable: 999 |
| 124 | pylint: |
| 125 | pattern: pylint.out |
| 126 | min: 10 |
| 127 | max: 999 |
| 128 | unstable: 999 |
| 129 | - email-ext: |
| 130 | recipients: '{obj:email_to}' |
| 131 | reply-to: ci-notification@lists.lttng.org |
| 132 | always: false |
| 133 | unstable: false |
| 134 | first-failure: true |
| 135 | first-unstable: true |
| 136 | not-built: false |
| 137 | aborted: false |
| 138 | regression: false |
| 139 | failure: false |
| 140 | second-failure: false |
| 141 | improvement: false |
| 142 | still-failing: false |
| 143 | success: false |
| 144 | fixed: false |
| 145 | fixed-unhealthy: true |
| 146 | still-unstable: false |
| 147 | pre-build: false |
| 148 | matrix-trigger: only-parent |
| 149 | send-to: |
| 150 | - recipients |
| 151 | |
| 152 | ## Project |
| 153 | - project: |
| 154 | name: lttng-analyses |
| 155 | github_user: lttng |
| 156 | github_name: lttng-analyses |
| 157 | email_to: 'ci-notification@lists.lttng.org, cc:jdesfossez@efficios.com' |
| 158 | version: |
| 159 | - master |
| 160 | jobs: |
| 161 | - 'lttng-analyses_{version}_build': |
| 162 | arch: !!python/tuple [amd64] |
| 163 | babeltrace_version: !!python/tuple [stable-1.5, stable-2.0, master] |
| 164 | - 'lttng-analyses_{version}_pylint': |
| 165 | babeltrace_version: stable-1.5 |
| 166 | |