| 1 | --- |
| 2 | - defaults: |
| 3 | name: lttng-modules |
| 4 | description: | |
| 5 | Build lttng-modules against different Linux kernels. |
| 6 | |
| 7 | <p>Job is managed by Jenkins Job Builder.</p> |
| 8 | |
| 9 | project-type: freestyle |
| 10 | |
| 11 | logrotate: |
| 12 | daysToKeep: -1 |
| 13 | numToKeep: 2 |
| 14 | artifactDaysToKeep: -1 |
| 15 | artifactNumToKeep: -1 |
| 16 | |
| 17 | wrappers: |
| 18 | - workspace-cleanup |
| 19 | - timestamps |
| 20 | - ansicolor |
| 21 | |
| 22 | scm: |
| 23 | - git: |
| 24 | url: git://github.com/lttng/lttng-modules.git |
| 25 | browser: githubweb |
| 26 | browser-url: https://github.com/efficios/lttng-modules |
| 27 | branches: |
| 28 | - "{mversion}" |
| 29 | shallow-clone: true |
| 30 | skip-tag: true |
| 31 | fastpoll: true |
| 32 | basedir: lttng-modules |
| 33 | |
| 34 | triggers: |
| 35 | - pollscm: |
| 36 | cron: "@daily" |
| 37 | |
| 38 | properties: |
| 39 | - github: |
| 40 | url: https://github.com/efficios/lttng-modules |
| 41 | - throttle: |
| 42 | max-per-node: 0 |
| 43 | max-total: 0 |
| 44 | option: category |
| 45 | categories: |
| 46 | - 'lttng-module-linux' |
| 47 | |
| 48 | |
| 49 | ## Templates |
| 50 | - job-template: |
| 51 | name: lttng-modules_{mversion}_{kversion}_{buildtype} |
| 52 | defaults: lttng-modules |
| 53 | |
| 54 | project-type: matrix |
| 55 | node: 'x86-32 || x86-64' # Applies only to matrix flyweight task |
| 56 | axes: |
| 57 | - axis: |
| 58 | type: slave |
| 59 | name: arch |
| 60 | values: '{obj:arch}' |
| 61 | |
| 62 | builders: |
| 63 | - copyartifact: |
| 64 | project: kernel_{kversion}_{buildtype}/arch=$arch |
| 65 | which-build: last-successful |
| 66 | stable: true |
| 67 | filter: 'build/**' |
| 68 | target: 'deps/linux' |
| 69 | do-not-fingerprint: true |
| 70 | - shell: | |
| 71 | git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://artifacts.internal.efficios.com/git/linux-stable.git linux |
| 72 | - shell: |
| 73 | !include-raw-escape scripts/lttng-modules/build.sh |
| 74 | |
| 75 | publishers: |
| 76 | - archive: |
| 77 | artifacts: 'build/**' |
| 78 | allow-empty: false |
| 79 | - workspace-cleanup |
| 80 | |
| 81 | - job-template: |
| 82 | name: lttng-modules_{version}_coverity |
| 83 | defaults: lttng-modules |
| 84 | node: 'x86-64' |
| 85 | |
| 86 | triggers: |
| 87 | - pollscm: |
| 88 | cron: "@daily" |
| 89 | |
| 90 | wrappers: |
| 91 | - workspace-cleanup |
| 92 | - timestamps |
| 93 | - ansicolor: |
| 94 | colormap: xterm |
| 95 | - credentials-binding: |
| 96 | - username-password-separated: |
| 97 | credential-id: lttng-modules_coverity_token |
| 98 | username: COVERITY_SCAN_PROJECT_NAME |
| 99 | password: COVERITY_SCAN_TOKEN |
| 100 | |
| 101 | builders: |
| 102 | - shell: |
| 103 | !include-raw-escape scripts/common/coverity.sh |
| 104 | |
| 105 | publishers: |
| 106 | - workspace-cleanup |
| 107 | |
| 108 | ## Project |
| 109 | - project: |
| 110 | name: lttng-modules |
| 111 | mversion: |
| 112 | !include jobs/inc/lttng-modules-versions.yaml.inc |
| 113 | kversion: |
| 114 | !include jobs/inc/kernel-versions.yaml.inc |
| 115 | jobs: |
| 116 | - 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
| 117 | buildtype: build |
| 118 | arch: !!python/tuple [x86-32, x86-64] |
| 119 | #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
| 120 | # buildtype: portbuild |
| 121 | # arch: !!python/tuple [armhf, powerpc] |
| 122 | - 'lttng-modules_{version}_coverity': |
| 123 | version: master |