| 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 | numToKeep: 2 |
| 15 | |
| 16 | wrappers: |
| 17 | - workspace-cleanup |
| 18 | - timestamps |
| 19 | - ansicolor |
| 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 | |
| 29 | triggers: |
| 30 | - pollscm: |
| 31 | cron: "@hourly" |
| 32 | |
| 33 | properties: |
| 34 | - github: |
| 35 | url: https://github.com/{github_user}/{github_name} |
| 36 | |
| 37 | |
| 38 | ## Templates |
| 39 | - job-template: |
| 40 | name: lttng-ust_{version}_{buildtype} |
| 41 | defaults: lttng-ust |
| 42 | |
| 43 | project-type: matrix |
| 44 | node: 'master' # Applies only to matrix flyweight task |
| 45 | execution-strategy: |
| 46 | combination-filter: | |
| 47 | (build=="std") || (liburcu_version=="master") |
| 48 | axes: |
| 49 | - axis: |
| 50 | type: slave |
| 51 | name: arch |
| 52 | values: '{obj:arch}' |
| 53 | - axis: |
| 54 | type: user-defined |
| 55 | name: conf |
| 56 | values: '{obj:conf}' |
| 57 | - axis: |
| 58 | type: user-defined |
| 59 | name: liburcu_version |
| 60 | values: |
| 61 | !include: jobs/inc/liburcu-versions.yaml.inc |
| 62 | - axis: |
| 63 | type: user-defined |
| 64 | name: build |
| 65 | values: '{obj:build}' |
| 66 | |
| 67 | builders: |
| 68 | - copyartifact: |
| 69 | project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std |
| 70 | which-build: last-successful |
| 71 | stable: true |
| 72 | filter: 'build/**' |
| 73 | target: 'deps/liburcu' |
| 74 | do-not-fingerprint: true |
| 75 | - shell: |
| 76 | !include-raw-escape: scripts/lttng-ust/build.sh |
| 77 | |
| 78 | # TODO: Scan for open tasks |
| 79 | publishers: |
| 80 | - tap: |
| 81 | results: 'tap/**/*.tap' |
| 82 | failed-tests-mark-build-as-failure: true |
| 83 | todo-is-failure: false |
| 84 | - warnings: |
| 85 | console-log-parsers: |
| 86 | - 'GNU Make + GNU C Compiler (gcc)' |
| 87 | total-thresholds: |
| 88 | unstable: |
| 89 | total-all: 0 |
| 90 | total-high: 0 |
| 91 | total-normal: 0 |
| 92 | total-low: 0 |
| 93 | - archive: |
| 94 | artifacts: 'build/**' |
| 95 | allow-empty: false |
| 96 | - workspace-cleanup |
| 97 | - ircbot: |
| 98 | strategy: new-failure-and-fixed |
| 99 | matrix-notifier: only-parent |
| 100 | channels: |
| 101 | - name: '#lttng' |
| 102 | |
| 103 | |
| 104 | - job-template: |
| 105 | name: lttng-ust_{version}_cppcheck |
| 106 | defaults: lttng-ust |
| 107 | |
| 108 | triggers: |
| 109 | - pollscm: |
| 110 | cron: "@daily" |
| 111 | |
| 112 | builders: |
| 113 | - shell: | |
| 114 | rm -f lttng-ust-cppcheck.xml |
| 115 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-ust-cppcheck.xml |
| 116 | |
| 117 | publishers: |
| 118 | - archive: |
| 119 | artifacts: 'lttng-ust-cppcheck.xml' |
| 120 | allow-empty: false |
| 121 | - cppcheck: |
| 122 | pattern: 'lttng-ust-cppcheck.xml' |
| 123 | - email: |
| 124 | recipients: 'ci-notification@lists.lttng.org' |
| 125 | notify-every-unstable-build: true |
| 126 | send-to-individuals: false |
| 127 | |
| 128 | - job-template: |
| 129 | name: lttng-ust_{version}_scan-build |
| 130 | defaults: lttng-ust |
| 131 | node: 'x86-64' |
| 132 | |
| 133 | triggers: |
| 134 | - pollscm: |
| 135 | cron: "@daily" |
| 136 | |
| 137 | builders: |
| 138 | - copyartifact: |
| 139 | project: liburcu_master_build/arch=x86-64,conf=std,build=std |
| 140 | which-build: last-successful |
| 141 | stable: true |
| 142 | filter: 'build/**' |
| 143 | target: 'deps/liburcu' |
| 144 | do-not-fingerprint: true |
| 145 | - shell: |
| 146 | !include-raw-escape: scripts/lttng-ust/scan-build.sh |
| 147 | |
| 148 | publishers: |
| 149 | - html-publisher: |
| 150 | name: 'HTML Report' |
| 151 | dir: 'scan-build-archive/' |
| 152 | files: 'index.html' |
| 153 | |
| 154 | - job-template: |
| 155 | name: lttng-ust_{version}_coverity |
| 156 | defaults: lttng-ust |
| 157 | node: 'x86-64' |
| 158 | |
| 159 | triggers: |
| 160 | - pollscm: |
| 161 | cron: "@daily" |
| 162 | |
| 163 | wrappers: |
| 164 | - workspace-cleanup |
| 165 | - timestamps |
| 166 | - ansicolor: |
| 167 | colormap: xterm |
| 168 | - credentials-binding: |
| 169 | - username-password-separated: |
| 170 | credential-id: lttng-ust_coverity_token |
| 171 | username: COVERITY_SCAN_PROJECT_NAME |
| 172 | password: COVERITY_SCAN_TOKEN |
| 173 | |
| 174 | builders: |
| 175 | - copyartifact: |
| 176 | project: liburcu_master_build/arch=x86-64,conf=std,build=std |
| 177 | which-build: last-successful |
| 178 | stable: true |
| 179 | filter: 'build/**' |
| 180 | target: 'deps/liburcu' |
| 181 | do-not-fingerprint: true |
| 182 | - shell: |
| 183 | !include-raw-escape: scripts/common/coverity.sh |
| 184 | |
| 185 | publishers: |
| 186 | - workspace-cleanup |
| 187 | |
| 188 | # TODO |
| 189 | - job-template: |
| 190 | name: lttng-ust_{version}_pylint |
| 191 | defaults: lttng-ust |
| 192 | node: 'x86-64' |
| 193 | |
| 194 | scm: [] |
| 195 | |
| 196 | triggers: |
| 197 | - pollscm: |
| 198 | cron: "@daily" |
| 199 | |
| 200 | builders: |
| 201 | - copyartifact: |
| 202 | project: lttng-ust-{version}/arch=x86-64,build=std,conf=python-agent |
| 203 | which-build: last-successful |
| 204 | stable: true |
| 205 | filter: 'build/**' |
| 206 | target: 'deps/lttng-ust' |
| 207 | do-not-fingerprint: true |
| 208 | - shell: |
| 209 | !include-raw-escape: scripts/lttng-ust/pylint.sh |
| 210 | |
| 211 | publishers: |
| 212 | - archive: |
| 213 | artifacts: 'pep8.out,pylint.out' |
| 214 | - violations: |
| 215 | pep8: |
| 216 | pattern: pep8.out |
| 217 | min: 10 |
| 218 | max: 999 |
| 219 | unstable: 999 |
| 220 | pylint: |
| 221 | pattern: pylint.out |
| 222 | min: 10 |
| 223 | max: 999 |
| 224 | unstable: 999 |
| 225 | - email: |
| 226 | recipients: 'ci-notification@lists.lttng.org' |
| 227 | notify-every-unstable-build: true |
| 228 | send-to-individuals: false |
| 229 | |
| 230 | |
| 231 | ## Project |
| 232 | - project: |
| 233 | name: lttng-ust |
| 234 | github_user: lttng |
| 235 | github_name: lttng-ust |
| 236 | version: |
| 237 | !include: jobs/inc/lttng-ust-versions.yaml.inc |
| 238 | jobs: |
| 239 | - 'lttng-ust_{version}_{buildtype}': |
| 240 | buildtype: build |
| 241 | arch: !!python/tuple [x86-32, x86-64] |
| 242 | build: !!python/tuple [std, oot, dist] |
| 243 | conf: !!python/tuple [std, java-agent, python-agent] |
| 244 | - 'lttng-ust_{version}_{buildtype}': |
| 245 | buildtype: portbuild |
| 246 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 247 | build: !!python/tuple [std] |
| 248 | conf: !!python/tuple [std, java-agent, python-agent] |
| 249 | - 'lttng-ust_{version}_cppcheck' |
| 250 | - 'lttng-ust_{version}_scan-build' |
| 251 | - 'lttng-ust_{version}_coverity': |
| 252 | version: master |
| 253 | |