Commit | Line | Data |
---|---|---|
598af463 MJ |
1 | --- |
2 | - defaults: | |
3 | name: lttng-modules | |
4 | description: | | |
f899b1be MJ |
5 | The LTTng modules provide Linux kernel tracing capability to the LTTng |
6 | 2.0 tracer toolset. | |
a3c2d81c MJ |
7 | |
8 | <p>Job is managed by Jenkins Job Builder.</p> | |
598af463 MJ |
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: | |
598af463 MJ |
24 | - git: |
25 | url: git://github.com/lttng/lttng-modules.git | |
9a00aa82 MJ |
26 | browser: githubweb |
27 | browser-url: https://github.com/efficios/lttng-modules | |
598af463 MJ |
28 | branches: |
29 | - "{mversion}" | |
94bddbc4 MJ |
30 | shallow-clone: true |
31 | skip-tag: true | |
32 | fastpoll: true | |
598af463 MJ |
33 | basedir: lttng-modules |
34 | ||
d2fc1027 | 35 | triggers: |
4f3fef7d MJ |
36 | - pollscm: |
37 | cron: "@daily" | |
d2fc1027 | 38 | |
598af463 | 39 | properties: |
9a00aa82 MJ |
40 | - github: |
41 | url: https://github.com/efficios/lttng-modules | |
598af463 MJ |
42 | - throttle: |
43 | max-per-node: 0 | |
44 | max-total: 0 | |
a3c2d81c | 45 | option: category |
598af463 MJ |
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 | |
ca8c6144 | 56 | node: 'master' # Applies only to matrix flyweight task |
598af463 MJ |
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' | |
83001fea | 70 | do-not-fingerprint: true |
a3c2d81c MJ |
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 | |
598af463 | 73 | - shell: |
ef63064f | 74 | !include-raw-escape: scripts/lttng-modules/build.sh |
598af463 MJ |
75 | |
76 | publishers: | |
77 | - archive: | |
78 | artifacts: 'build/**' | |
79 | allow-empty: false | |
a3c2d81c | 80 | - workspace-cleanup |
598af463 | 81 | |
4f3fef7d | 82 | - job-template: |
f899b1be | 83 | name: lttng-modules_{mversion}_coverity |
4f3fef7d MJ |
84 | defaults: lttng-modules |
85 | node: 'x86-64' | |
86 | ||
87 | triggers: | |
88 | - pollscm: | |
89 | cron: "@daily" | |
90 | ||
f899b1be MJ |
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 | ||
4f3fef7d MJ |
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: | |
ef63064f | 112 | !include-raw-escape: scripts/common/coverity.sh |
4f3fef7d MJ |
113 | |
114 | publishers: | |
115 | - workspace-cleanup | |
598af463 | 116 | |
f899b1be MJ |
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 | ||
598af463 MJ |
150 | ## Project |
151 | - project: | |
152 | name: lttng-modules | |
153 | mversion: | |
ef63064f | 154 | !include: jobs/inc/lttng-modules-versions.yaml.inc |
598af463 | 155 | kversion: |
ef63064f | 156 | !include: jobs/inc/kernel-versions.yaml.inc |
598af463 MJ |
157 | jobs: |
158 | - 'lttng-modules_{mversion}_{kversion}_{buildtype}': | |
159 | buildtype: build | |
160 | arch: !!python/tuple [x86-32, x86-64] | |
af978102 MJ |
161 | #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
162 | # buildtype: portbuild | |
163 | # arch: !!python/tuple [armhf, powerpc] | |
f899b1be MJ |
164 | - 'lttng-modules_{mversion}_cppcheck' |
165 | - 'lttng-modules_{mversion}_coverity': | |
166 | mversion: master |