| 1 | # {project}_{version}_{jobtype} |
| 2 | # librseq_stable-0.8_build |
| 3 | # |
| 4 | # jobtypes: |
| 5 | # - build |
| 6 | # - portbuild |
| 7 | # - cppcheck |
| 8 | # - coverity |
| 9 | # - scan-build |
| 10 | # - pylint |
| 11 | |
| 12 | - defaults: |
| 13 | name: librseq |
| 14 | description: | |
| 15 | |
| 16 | <p>Job is managed by Jenkins Job Builder.</p> |
| 17 | |
| 18 | project-type: freestyle |
| 19 | |
| 20 | wrappers: |
| 21 | - ansicolor |
| 22 | - timeout: |
| 23 | timeout: 10 |
| 24 | fail: true |
| 25 | type: no-activity |
| 26 | - timestamps |
| 27 | - workspace-cleanup: |
| 28 | clean-if: |
| 29 | - failure: false |
| 30 | |
| 31 | scm: |
| 32 | - git: |
| 33 | url: https://github.com/{github_user}/{github_name}.git |
| 34 | browser: githubweb |
| 35 | browser-url: https://github.com/{github_user}/{github_name} |
| 36 | branches: |
| 37 | - origin/{version} |
| 38 | basedir: src/librseq |
| 39 | skip-tag: true |
| 40 | |
| 41 | triggers: |
| 42 | - pollscm: |
| 43 | cron: "@hourly" |
| 44 | |
| 45 | properties: |
| 46 | - inject: |
| 47 | properties-content: | |
| 48 | PROJECT_NAME=librseq |
| 49 | - build-discarder: |
| 50 | num-to-keep: 2 |
| 51 | - github: |
| 52 | url: https://github.com/{github_user}/{github_name} |
| 53 | |
| 54 | |
| 55 | ## Anchors |
| 56 | - librseq_build_axes_defaults: &librseq_build_axes_defaults |
| 57 | name: 'librseq_build_axes_defaults' |
| 58 | project-type: matrix |
| 59 | node: 'master' # Applies only to matrix flyweight task |
| 60 | axes: |
| 61 | - axis: |
| 62 | type: slave |
| 63 | name: arch |
| 64 | values: '{obj:arch}' |
| 65 | - axis: |
| 66 | type: user-defined |
| 67 | name: conf |
| 68 | values: '{obj:conf}' |
| 69 | - axis: |
| 70 | type: user-defined |
| 71 | name: build |
| 72 | values: '{obj:build}' |
| 73 | |
| 74 | - librseq_build_axes_cc: &librseq_build_axes_cc |
| 75 | name: 'librseq_build_axes_cc' |
| 76 | project-type: matrix |
| 77 | node: 'master' # Applies only to matrix flyweight task |
| 78 | axes: |
| 79 | - axis: |
| 80 | type: slave |
| 81 | name: arch |
| 82 | values: '{obj:arch}' |
| 83 | - axis: |
| 84 | type: user-defined |
| 85 | name: conf |
| 86 | values: '{obj:conf}' |
| 87 | - axis: |
| 88 | type: user-defined |
| 89 | name: build |
| 90 | values: '{obj:build}' |
| 91 | - axis: |
| 92 | type: user-defined |
| 93 | name: cc |
| 94 | values: '{obj:cc}' |
| 95 | |
| 96 | - librseq_build_builders_defaults: &librseq_build_builders_defaults |
| 97 | name: 'librseq_build_builders_defaults' |
| 98 | builders: |
| 99 | - shell: |
| 100 | !include-raw-escape: |
| 101 | - scripts/common/print.sh |
| 102 | - scripts/librseq/build.sh |
| 103 | |
| 104 | - librseq_build_publishers_defaults: &librseq_build_publishers_defaults |
| 105 | name: 'librseq_build_publishers_defaults' |
| 106 | publishers: |
| 107 | - warnings: |
| 108 | console-log-parsers: |
| 109 | - 'GNU Make + GNU C Compiler (gcc)' |
| 110 | total-thresholds: |
| 111 | unstable: |
| 112 | total-all: 0 |
| 113 | total-high: 0 |
| 114 | total-normal: 0 |
| 115 | total-low: 0 |
| 116 | - archive: |
| 117 | artifacts: 'build/**' |
| 118 | allow-empty: false |
| 119 | - ircbot: |
| 120 | strategy: new-failure-and-fixed |
| 121 | matrix-notifier: only-parent |
| 122 | channels: |
| 123 | - name: '#lttng' |
| 124 | - email-ext: |
| 125 | recipients: '{obj:email_to}' |
| 126 | reply-to: ci-notification@lists.lttng.org |
| 127 | always: false |
| 128 | unstable: false |
| 129 | first-failure: true |
| 130 | first-unstable: true |
| 131 | not-built: false |
| 132 | aborted: false |
| 133 | regression: false |
| 134 | failure: false |
| 135 | second-failure: false |
| 136 | improvement: false |
| 137 | still-failing: false |
| 138 | success: false |
| 139 | fixed: false |
| 140 | fixed-unhealthy: true |
| 141 | still-unstable: false |
| 142 | pre-build: false |
| 143 | matrix-trigger: only-parent |
| 144 | send-to: |
| 145 | - recipients |
| 146 | |
| 147 | ## Templates |
| 148 | - job-template: |
| 149 | name: librseq_{version}_{buildtype} |
| 150 | defaults: librseq |
| 151 | |
| 152 | <<: *librseq_build_axes_defaults |
| 153 | <<: *librseq_build_builders_defaults |
| 154 | <<: *librseq_build_publishers_defaults |
| 155 | |
| 156 | - job-template: |
| 157 | name: librseq_{version}_{cctype} |
| 158 | defaults: librseq |
| 159 | |
| 160 | <<: *librseq_build_axes_cc |
| 161 | <<: *librseq_build_builders_defaults |
| 162 | <<: *librseq_build_publishers_defaults |
| 163 | |
| 164 | - job-template: |
| 165 | name: librseq_{version}_cppcheck |
| 166 | defaults: librseq |
| 167 | |
| 168 | triggers: |
| 169 | - pollscm: |
| 170 | cron: "@daily" |
| 171 | |
| 172 | builders: |
| 173 | - shell: | |
| 174 | rm -f cppcheck-result.xml |
| 175 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml |
| 176 | |
| 177 | publishers: |
| 178 | - archive: |
| 179 | artifacts: 'cppcheck-result.xml' |
| 180 | allow-empty: false |
| 181 | - cppcheck: |
| 182 | pattern: 'cppcheck-result.xml' |
| 183 | - email-ext: |
| 184 | recipients: '{obj:email_to}' |
| 185 | reply-to: ci-notification@lists.lttng.org |
| 186 | always: false |
| 187 | unstable: false |
| 188 | first-failure: true |
| 189 | first-unstable: false |
| 190 | not-built: false |
| 191 | aborted: false |
| 192 | regression: false |
| 193 | failure: false |
| 194 | second-failure: false |
| 195 | improvement: false |
| 196 | still-failing: false |
| 197 | success: false |
| 198 | fixed: false |
| 199 | fixed-unhealthy: true |
| 200 | still-unstable: true |
| 201 | pre-build: false |
| 202 | matrix-trigger: only-parent |
| 203 | send-to: |
| 204 | - recipients |
| 205 | |
| 206 | - job-template: |
| 207 | name: librseq_{version}_scan-build |
| 208 | defaults: librseq |
| 209 | node: 'amd64' |
| 210 | |
| 211 | triggers: |
| 212 | - pollscm: |
| 213 | cron: "@daily" |
| 214 | |
| 215 | builders: |
| 216 | - shell: |
| 217 | !include-raw-escape: scripts/common/scan-build.sh |
| 218 | |
| 219 | publishers: |
| 220 | - html-publisher: |
| 221 | name: 'HTML Report' |
| 222 | dir: 'scan-build-archive/' |
| 223 | files: 'index.html' |
| 224 | |
| 225 | - job-template: |
| 226 | name: librseq_{version}_coverity |
| 227 | defaults: librseq |
| 228 | node: 'amd64' |
| 229 | |
| 230 | triggers: |
| 231 | - pollscm: |
| 232 | cron: "@daily" |
| 233 | |
| 234 | wrappers: |
| 235 | - ansicolor |
| 236 | - timeout: |
| 237 | timeout: 10 |
| 238 | fail: true |
| 239 | type: no-activity |
| 240 | - timestamps |
| 241 | - workspace-cleanup: |
| 242 | clean-if: |
| 243 | - failure: false |
| 244 | - credentials-binding: |
| 245 | - username-password-separated: |
| 246 | credential-id: librseq_coverity_token |
| 247 | username: COVERITY_SCAN_PROJECT_NAME |
| 248 | password: COVERITY_SCAN_TOKEN |
| 249 | |
| 250 | builders: |
| 251 | - shell: |
| 252 | !include-raw-escape: scripts/common/coverity.sh |
| 253 | |
| 254 | publishers: |
| 255 | - workspace-cleanup |
| 256 | - archive: |
| 257 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 258 | allow-empty: false |
| 259 | |
| 260 | - view-template: |
| 261 | name: 'rseq' |
| 262 | description: 'Restartable sequences' |
| 263 | view-type: list |
| 264 | regex: 'librseq_.*|linux-rseq_.*' |
| 265 | |
| 266 | |
| 267 | ## Project |
| 268 | - project: |
| 269 | name: librseq |
| 270 | github_user: compudj |
| 271 | github_name: librseq |
| 272 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' |
| 273 | version: |
| 274 | - master |
| 275 | jobs: |
| 276 | - 'librseq_{version}_{buildtype}': |
| 277 | buildtype: build |
| 278 | arch: !!python/tuple [amd64] |
| 279 | build: !!python/tuple [std, oot, dist, oot-dist] |
| 280 | conf: !!python/tuple [std, static] |
| 281 | - 'librseq_{version}_{cctype}': |
| 282 | cctype: gccbuild |
| 283 | arch: !!python/tuple [amd64] |
| 284 | build: !!python/tuple [std] |
| 285 | conf: !!python/tuple [std, static] |
| 286 | cc: !!python/tuple [gcc-4.8, gcc-5, gcc-6, gcc-7, gcc-8] |
| 287 | - 'librseq_{version}_{cctype}': |
| 288 | cctype: clangbuild |
| 289 | arch: !!python/tuple [amd64] |
| 290 | build: !!python/tuple [std] |
| 291 | conf: !!python/tuple [std, static] |
| 292 | cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7] |
| 293 | - 'librseq_{version}_{buildtype}': |
| 294 | buildtype: portbuild |
| 295 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] |
| 296 | build: !!python/tuple [std] |
| 297 | conf: !!python/tuple [std, static] |
| 298 | # - 'librseq_{version}_cppcheck' |
| 299 | # - 'librseq_{version}_scan-build' |
| 300 | # - 'librseq_{version}_coverity': |
| 301 | # version: master |
| 302 | |
| 303 | - project: |
| 304 | name: librseq-views |
| 305 | views: |
| 306 | - rseq |