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