| 1 | --- |
| 2 | - defaults: |
| 3 | name: lttng-modules |
| 4 | description: | |
| 5 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
| 6 | 2.0 tracer toolset. |
| 7 | |
| 8 | <p>Job is managed by Jenkins Job Builder.</p> |
| 9 | |
| 10 | project-type: freestyle |
| 11 | |
| 12 | logrotate: |
| 13 | daysToKeep: -1 |
| 14 | numToKeep: 2 |
| 15 | artifactDaysToKeep: -1 |
| 16 | artifactNumToKeep: -1 |
| 17 | |
| 18 | wrappers: |
| 19 | - workspace-cleanup |
| 20 | - timestamps |
| 21 | - ansicolor |
| 22 | |
| 23 | scm: |
| 24 | - git: |
| 25 | url: git://github.com/lttng/lttng-modules.git |
| 26 | browser: githubweb |
| 27 | browser-url: https://github.com/efficios/lttng-modules |
| 28 | branches: |
| 29 | - "{mversion}" |
| 30 | shallow-clone: true |
| 31 | skip-tag: true |
| 32 | fastpoll: true |
| 33 | basedir: lttng-modules |
| 34 | |
| 35 | triggers: |
| 36 | - pollscm: |
| 37 | cron: "@daily" |
| 38 | |
| 39 | properties: |
| 40 | - github: |
| 41 | url: https://github.com/efficios/lttng-modules |
| 42 | - throttle: |
| 43 | max-per-node: 0 |
| 44 | max-total: 0 |
| 45 | option: category |
| 46 | categories: |
| 47 | - 'lttng-module-linux' |
| 48 | |
| 49 | |
| 50 | ## Templates |
| 51 | - job-template: |
| 52 | name: lttng-modules_{mversion}_{kversion}_{buildtype} |
| 53 | defaults: lttng-modules |
| 54 | |
| 55 | project-type: matrix |
| 56 | node: 'master' # Applies only to matrix flyweight task |
| 57 | axes: |
| 58 | - axis: |
| 59 | type: slave |
| 60 | name: arch |
| 61 | values: '{obj:arch}' |
| 62 | |
| 63 | builders: |
| 64 | - copyartifact: |
| 65 | project: kernel_{kversion}_{buildtype}/arch=$arch |
| 66 | which-build: last-successful |
| 67 | stable: true |
| 68 | filter: 'build/**' |
| 69 | target: 'deps/linux' |
| 70 | do-not-fingerprint: true |
| 71 | - shell: | |
| 72 | git clone --depth=1 -b "v{kversion}" --reference $HOME/gitcache/linux-stable.git/ git://artifacts.internal.efficios.com/git/linux-stable.git linux |
| 73 | - shell: |
| 74 | !include-raw-escape scripts/lttng-modules/build.sh |
| 75 | |
| 76 | publishers: |
| 77 | - archive: |
| 78 | artifacts: 'build/**' |
| 79 | allow-empty: false |
| 80 | - workspace-cleanup |
| 81 | |
| 82 | - job-template: |
| 83 | name: lttng-modules_{mversion}_coverity |
| 84 | defaults: lttng-modules |
| 85 | node: 'x86-64' |
| 86 | |
| 87 | triggers: |
| 88 | - pollscm: |
| 89 | cron: "@daily" |
| 90 | |
| 91 | scm: |
| 92 | - git: |
| 93 | url: git://github.com/lttng/lttng-modules.git |
| 94 | browser: githubweb |
| 95 | browser-url: https://github.com/efficios/lttng-modules |
| 96 | branches: |
| 97 | - "{mversion}" |
| 98 | |
| 99 | wrappers: |
| 100 | - workspace-cleanup |
| 101 | - timestamps |
| 102 | - ansicolor: |
| 103 | colormap: xterm |
| 104 | - credentials-binding: |
| 105 | - username-password-separated: |
| 106 | credential-id: lttng-modules_coverity_token |
| 107 | username: COVERITY_SCAN_PROJECT_NAME |
| 108 | password: COVERITY_SCAN_TOKEN |
| 109 | |
| 110 | builders: |
| 111 | - shell: |
| 112 | !include-raw-escape scripts/common/coverity.sh |
| 113 | |
| 114 | publishers: |
| 115 | - workspace-cleanup |
| 116 | |
| 117 | - job-template: |
| 118 | name: lttng-modules_{mversion}_cppcheck |
| 119 | defaults: lttng-modules |
| 120 | |
| 121 | triggers: |
| 122 | - pollscm: |
| 123 | cron: "@daily" |
| 124 | |
| 125 | scm: |
| 126 | - git: |
| 127 | url: git://github.com/lttng/lttng-modules.git |
| 128 | browser: githubweb |
| 129 | browser-url: https://github.com/efficios/lttng-modules |
| 130 | branches: |
| 131 | - "{mversion}" |
| 132 | |
| 133 | builders: |
| 134 | - shell: | |
| 135 | rm -f cppcheck.xml |
| 136 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> cppcheck.xml |
| 137 | |
| 138 | publishers: |
| 139 | - archive: |
| 140 | artifacts: 'cppcheck.xml' |
| 141 | allow-empty: false |
| 142 | - cppcheck: |
| 143 | pattern: 'cppcheck.xml' |
| 144 | - email: |
| 145 | recipients: 'ci-notification@lists.lttng.org' |
| 146 | notify-every-unstable-build: true |
| 147 | send-to-individuals: false |
| 148 | |
| 149 | |
| 150 | ## Project |
| 151 | - project: |
| 152 | name: lttng-modules |
| 153 | mversion: |
| 154 | !include jobs/inc/lttng-modules-versions.yaml.inc |
| 155 | kversion: |
| 156 | !include jobs/inc/kernel-versions.yaml.inc |
| 157 | jobs: |
| 158 | - 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
| 159 | buildtype: build |
| 160 | arch: !!python/tuple [x86-32, x86-64] |
| 161 | #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
| 162 | # buildtype: portbuild |
| 163 | # arch: !!python/tuple [armhf, powerpc] |
| 164 | - 'lttng-modules_{mversion}_cppcheck' |
| 165 | - 'lttng-modules_{mversion}_coverity': |
| 166 | mversion: master |