Commit | Line | Data |
---|---|---|
ead62c96 MJ |
1 | - defaults: |
2 | name: lttng-analyses | |
3 | description: | | |
4 | LTTng analyses python scripts. | |
5 | ||
6 | <p>Job is managed by Jenkins Job Builder.</p> | |
7 | ||
8 | project-type: freestyle | |
9 | ||
10 | logrotate: | |
11 | daysToKeep: -1 | |
12 | numToKeep: 2 | |
13 | artifactDaysToKeep: -1 | |
14 | artifactNumToKeep: -1 | |
15 | ||
16 | wrappers: | |
17 | - workspace-cleanup | |
18 | - timestamps | |
19 | - ansicolor: | |
20 | colormap: xterm | |
21 | ||
22 | scm: | |
23 | - git: | |
51ca880a | 24 | url: git://github.com/{github_user}/{github_name}.git |
ead62c96 | 25 | browser: githubweb |
51ca880a | 26 | browser-url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
27 | branches: |
28 | - origin/{version} | |
673cb703 | 29 | basedir: src/lttng-analyses |
ead62c96 MJ |
30 | |
31 | triggers: | |
32 | - pollscm: | |
33 | cron: "@hourly" | |
34 | ||
35 | properties: | |
36 | - github: | |
51ca880a | 37 | url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
38 | |
39 | ||
40 | ## Templates | |
4f4f6150 MJ |
41 | - job-template: |
42 | name: lttng-analyses_{version}_build | |
43 | defaults: lttng-analyses | |
44 | ||
45 | project-type: matrix | |
46 | node: 'master' # Applies only to matrix flyweight task | |
47 | axes: | |
48 | - axis: | |
49 | type: slave | |
50 | name: arch | |
51 | values: '{obj:arch}' | |
a37a1ee0 MJ |
52 | - axis: |
53 | type: user-defined | |
54 | name: babeltrace_version | |
55 | values: '{obj:babeltrace_version}' | |
4f4f6150 MJ |
56 | |
57 | builders: | |
58 | - copyartifact: | |
a37a1ee0 | 59 | project: babeltrace_${{babeltrace_version}}_build/arch=${{arch}},build=std,conf=python-bindings |
4f4f6150 MJ |
60 | which-build: last-successful |
61 | stable: true | |
62 | filter: 'build/**' | |
63 | target: 'deps/babeltrace' | |
64 | - shell: | |
ef63064f | 65 | !include-raw-escape: scripts/lttng-analyses/build.sh |
4f4f6150 MJ |
66 | |
67 | # publishers: | |
68 | # - archive: | |
69 | # artifacts: 'build/**' | |
70 | # allow-empty: false | |
71 | ||
72 | ||
ead62c96 MJ |
73 | - job-template: |
74 | name: lttng-analyses_{version}_pylint | |
75 | defaults: lttng-analyses | |
76 | node: 'x86-64' | |
77 | ||
78 | triggers: | |
79 | - pollscm: | |
80 | cron: "@daily" | |
81 | ||
82 | builders: | |
83 | - copyartifact: | |
b330701d | 84 | project: babeltrace_master_build/arch=x86-64,build=std,conf=python-bindings |
ead62c96 MJ |
85 | which-build: last-successful |
86 | stable: true | |
87 | filter: 'build/**' | |
88 | target: 'deps/babeltrace' | |
89 | - shell: | |
ef63064f | 90 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
ead62c96 MJ |
91 | |
92 | publishers: | |
93 | - archive: | |
94 | artifacts: 'pep8.out,pylint.out' | |
95 | - violations: | |
96 | pep8: | |
97 | pattern: pep8.out | |
98 | min: 10 | |
99 | max: 999 | |
100 | unstable: 999 | |
101 | pylint: | |
102 | pattern: pylint.out | |
103 | min: 10 | |
104 | max: 999 | |
105 | unstable: 999 | |
106 | - email: | |
107 | recipients: 'ci-notification@lists.lttng.org' | |
108 | notify-every-unstable-build: true | |
109 | send-to-individuals: false | |
110 | ||
111 | ||
112 | ## Project | |
113 | - project: | |
114 | name: lttng-analyses | |
51ca880a MJ |
115 | github_user: lttng |
116 | github_name: lttng-analyses | |
ead62c96 MJ |
117 | version: |
118 | - master | |
119 | jobs: | |
4f4f6150 MJ |
120 | - 'lttng-analyses_{version}_build': |
121 | arch: !!python/tuple [x86-32, x86-64] | |
a37a1ee0 | 122 | babeltrace_version: !!python/tuple [stable-1.3, stable-1.4, master] |
ead62c96 MJ |
123 | - 'lttng-analyses_{version}_pylint' |
124 |