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