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} | |
29 | ||
30 | triggers: | |
31 | - pollscm: | |
32 | cron: "@hourly" | |
33 | ||
34 | properties: | |
35 | - github: | |
51ca880a | 36 | url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
37 | |
38 | ||
39 | ## Templates | |
4f4f6150 MJ |
40 | - job-template: |
41 | name: lttng-analyses_{version}_build | |
42 | defaults: lttng-analyses | |
43 | ||
44 | project-type: matrix | |
45 | node: 'master' # Applies only to matrix flyweight task | |
46 | axes: | |
47 | - axis: | |
48 | type: slave | |
49 | name: arch | |
50 | values: '{obj:arch}' | |
51 | ||
52 | builders: | |
53 | - copyartifact: | |
54 | project: babeltrace_master_build/arch=${{arch}},build=std,conf=python-bindings | |
55 | which-build: last-successful | |
56 | stable: true | |
57 | filter: 'build/**' | |
58 | target: 'deps/babeltrace' | |
59 | - shell: | |
ef63064f | 60 | !include-raw-escape: scripts/lttng-analyses/build.sh |
4f4f6150 MJ |
61 | |
62 | # publishers: | |
63 | # - archive: | |
64 | # artifacts: 'build/**' | |
65 | # allow-empty: false | |
66 | ||
67 | ||
ead62c96 MJ |
68 | - job-template: |
69 | name: lttng-analyses_{version}_pylint | |
70 | defaults: lttng-analyses | |
71 | node: 'x86-64' | |
72 | ||
73 | triggers: | |
74 | - pollscm: | |
75 | cron: "@daily" | |
76 | ||
77 | builders: | |
78 | - copyartifact: | |
b330701d | 79 | project: babeltrace_master_build/arch=x86-64,build=std,conf=python-bindings |
ead62c96 MJ |
80 | which-build: last-successful |
81 | stable: true | |
82 | filter: 'build/**' | |
83 | target: 'deps/babeltrace' | |
84 | - shell: | |
ef63064f | 85 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
ead62c96 MJ |
86 | |
87 | publishers: | |
88 | - archive: | |
89 | artifacts: 'pep8.out,pylint.out' | |
90 | - violations: | |
91 | pep8: | |
92 | pattern: pep8.out | |
93 | min: 10 | |
94 | max: 999 | |
95 | unstable: 999 | |
96 | pylint: | |
97 | pattern: pylint.out | |
98 | min: 10 | |
99 | max: 999 | |
100 | unstable: 999 | |
101 | - email: | |
102 | recipients: 'ci-notification@lists.lttng.org' | |
103 | notify-every-unstable-build: true | |
104 | send-to-individuals: false | |
105 | ||
106 | ||
107 | ## Project | |
108 | - project: | |
109 | name: lttng-analyses | |
51ca880a MJ |
110 | github_user: lttng |
111 | github_name: lttng-analyses | |
ead62c96 MJ |
112 | version: |
113 | - master | |
114 | jobs: | |
4f4f6150 MJ |
115 | - 'lttng-analyses_{version}_build': |
116 | arch: !!python/tuple [x86-32, x86-64] | |
ead62c96 MJ |
117 | - 'lttng-analyses_{version}_pylint' |
118 |