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 | ||
ead62c96 MJ |
10 | wrappers: |
11 | - workspace-cleanup | |
12 | - timestamps | |
13 | - ansicolor: | |
14 | colormap: xterm | |
de41e5b5 MJ |
15 | - credentials-binding: |
16 | - username-password-separated: | |
17 | credential-id: lttng-analyses_codecov_token | |
18 | username: CODECOV_PROJECT_NAME | |
19 | password: CODECOV_TOKEN | |
ead62c96 MJ |
20 | |
21 | scm: | |
22 | - git: | |
4d27af8f | 23 | url: https://github.com/{github_user}/{github_name}.git |
ead62c96 | 24 | browser: githubweb |
51ca880a | 25 | browser-url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
26 | branches: |
27 | - origin/{version} | |
673cb703 | 28 | basedir: src/lttng-analyses |
de41e5b5 | 29 | skip-tag: true |
ead62c96 MJ |
30 | |
31 | triggers: | |
32 | - pollscm: | |
33 | cron: "@hourly" | |
34 | ||
35 | properties: | |
edf72710 MJ |
36 | - build-discarder: |
37 | num-to-keep: 2 | |
ead62c96 | 38 | - github: |
51ca880a | 39 | url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
40 | |
41 | ||
42 | ## Templates | |
4f4f6150 MJ |
43 | - job-template: |
44 | name: lttng-analyses_{version}_build | |
45 | defaults: lttng-analyses | |
46 | ||
47 | project-type: matrix | |
48 | node: 'master' # Applies only to matrix flyweight task | |
49 | axes: | |
50 | - axis: | |
51 | type: slave | |
52 | name: arch | |
53 | values: '{obj:arch}' | |
a37a1ee0 MJ |
54 | - axis: |
55 | type: user-defined | |
56 | name: babeltrace_version | |
57 | values: '{obj:babeltrace_version}' | |
4f4f6150 MJ |
58 | |
59 | builders: | |
60 | - copyartifact: | |
a37a1ee0 | 61 | project: babeltrace_${{babeltrace_version}}_build/arch=${{arch}},build=std,conf=python-bindings |
4f4f6150 | 62 | which-build: last-successful |
3522265a | 63 | stable: false |
4f4f6150 MJ |
64 | filter: 'build/**' |
65 | target: 'deps/babeltrace' | |
66 | - shell: | |
ef63064f | 67 | !include-raw-escape: scripts/lttng-analyses/build.sh |
4f4f6150 | 68 | |
de41e5b5 | 69 | publishers: |
4f4f6150 MJ |
70 | # - archive: |
71 | # artifacts: 'build/**' | |
72 | # allow-empty: false | |
a3fd32f1 JR |
73 | - email-ext: |
74 | recipients: '{obj:email_to}' | |
75 | reply-to: ci-notification@lists.lttng.org | |
76 | always: false | |
77 | unstable: false | |
78 | first-failure: true | |
79 | first-unstable: true | |
80 | not-built: false | |
81 | aborted: false | |
82 | regression: false | |
83 | failure: false | |
84 | second-failure: false | |
85 | improvement: false | |
86 | still-failing: false | |
87 | success: false | |
88 | fixed: false | |
89 | fixed-unhealthy: true | |
90 | still-unstable: false | |
91 | pre-build: false | |
92 | matrix-trigger: only-parent | |
93 | send-to: | |
94 | - recipients | |
4f4f6150 | 95 | |
ead62c96 MJ |
96 | - job-template: |
97 | name: lttng-analyses_{version}_pylint | |
98 | defaults: lttng-analyses | |
16844a6d | 99 | node: 'amd64' |
ead62c96 MJ |
100 | |
101 | triggers: | |
102 | - pollscm: | |
103 | cron: "@daily" | |
104 | ||
105 | builders: | |
106 | - copyartifact: | |
16844a6d | 107 | project: babeltrace_{babeltrace_version}_build/arch=amd64,build=std,conf=python-bindings |
ead62c96 | 108 | which-build: last-successful |
3522265a | 109 | stable: false |
ead62c96 MJ |
110 | filter: 'build/**' |
111 | target: 'deps/babeltrace' | |
112 | - shell: | |
ef63064f | 113 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
ead62c96 MJ |
114 | |
115 | publishers: | |
116 | - archive: | |
117 | artifacts: 'pep8.out,pylint.out' | |
a3fd32f1 JR |
118 | - email-ext: |
119 | recipients: '{obj:email_to}' | |
120 | reply-to: ci-notification@lists.lttng.org | |
121 | always: false | |
122 | unstable: false | |
123 | first-failure: true | |
124 | first-unstable: true | |
125 | not-built: false | |
126 | aborted: false | |
127 | regression: false | |
128 | failure: false | |
129 | second-failure: false | |
130 | improvement: false | |
131 | still-failing: false | |
132 | success: false | |
133 | fixed: false | |
134 | fixed-unhealthy: true | |
135 | still-unstable: false | |
136 | pre-build: false | |
137 | matrix-trigger: only-parent | |
138 | send-to: | |
139 | - recipients | |
ead62c96 MJ |
140 | |
141 | ## Project | |
142 | - project: | |
143 | name: lttng-analyses | |
51ca880a MJ |
144 | github_user: lttng |
145 | github_name: lttng-analyses | |
2c8e24aa | 146 | email_to: 'ci-notification@lists.lttng.org' |
ead62c96 MJ |
147 | version: |
148 | - master | |
149 | jobs: | |
4f4f6150 | 150 | - 'lttng-analyses_{version}_build': |
16844a6d | 151 | arch: !!python/tuple [amd64] |
fec0d441 | 152 | babeltrace_version: !!python/tuple [stable-1.5] |
21ae1ad6 MJ |
153 | - 'lttng-analyses_{version}_pylint': |
154 | babeltrace_version: stable-1.5 | |
ead62c96 | 155 |