Commit | Line | Data |
---|---|---|
598af463 MJ |
1 | --- |
2 | - defaults: | |
3 | name: lttng-modules | |
4 | description: | | |
a3c2d81c MJ |
5 | Build lttng-modules against different Linux kernels. |
6 | ||
7 | <p>Job is managed by Jenkins Job Builder.</p> | |
598af463 MJ |
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: | |
598af463 MJ |
23 | - git: |
24 | url: git://github.com/lttng/lttng-modules.git | |
9a00aa82 MJ |
25 | browser: githubweb |
26 | browser-url: https://github.com/efficios/lttng-modules | |
598af463 MJ |
27 | branches: |
28 | - "{mversion}" | |
94bddbc4 MJ |
29 | shallow-clone: true |
30 | skip-tag: true | |
31 | fastpoll: true | |
598af463 MJ |
32 | basedir: lttng-modules |
33 | ||
d2fc1027 | 34 | triggers: |
4f3fef7d MJ |
35 | - pollscm: |
36 | cron: "@daily" | |
d2fc1027 | 37 | |
598af463 | 38 | properties: |
9a00aa82 MJ |
39 | - github: |
40 | url: https://github.com/efficios/lttng-modules | |
598af463 MJ |
41 | - throttle: |
42 | max-per-node: 0 | |
43 | max-total: 0 | |
a3c2d81c | 44 | option: category |
598af463 MJ |
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 | |
94bddbc4 | 55 | node: 'x86-32 || x86-64' # Applies only to matrix flyweight task |
598af463 MJ |
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' | |
83001fea | 69 | do-not-fingerprint: true |
a3c2d81c MJ |
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 | |
598af463 MJ |
72 | - shell: |
73 | !include-raw-escape scripts/lttng-modules/build.sh | |
74 | ||
75 | publishers: | |
76 | - archive: | |
77 | artifacts: 'build/**' | |
78 | allow-empty: false | |
a3c2d81c | 79 | - workspace-cleanup |
598af463 | 80 | |
4f3fef7d MJ |
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 | |
598af463 MJ |
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] | |
af978102 MJ |
119 | #- 'lttng-modules_{mversion}_{kversion}_{buildtype}': |
120 | # buildtype: portbuild | |
121 | # arch: !!python/tuple [armhf, powerpc] | |
4f3fef7d MJ |
122 | - 'lttng-modules_{version}_coverity': |
123 | version: master |