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 MJ |
40 | - build-discarder: |
41 | num-to-keep: 2 | |
ead62c96 | 42 | - github: |
51ca880a | 43 | url: https://github.com/{github_user}/{github_name} |
ead62c96 MJ |
44 | |
45 | ||
46 | ## Templates | |
4f4f6150 | 47 | - job-template: |
6ba6faca | 48 | name: lttng-analyses_{version}_linuxbuild |
4f4f6150 MJ |
49 | defaults: lttng-analyses |
50 | ||
51 | project-type: matrix | |
52 | node: 'master' # Applies only to matrix flyweight task | |
53 | axes: | |
54 | - axis: | |
55 | type: slave | |
6ba6faca MJ |
56 | name: platform |
57 | values: '{obj:platforms}' | |
a37a1ee0 MJ |
58 | - axis: |
59 | type: user-defined | |
60 | name: babeltrace_version | |
6ba6faca | 61 | values: '{obj:babeltrace_versions}' |
4f4f6150 MJ |
62 | |
63 | builders: | |
64 | - copyartifact: | |
6ba6faca | 65 | project: dev_upstream_babeltrace_${{babeltrace_version}}_linuxbuild/platform=${{platform}},build=std,conf=python-bindings |
4f4f6150 | 66 | which-build: last-successful |
3522265a | 67 | stable: false |
4f4f6150 MJ |
68 | filter: 'build/**' |
69 | target: 'deps/babeltrace' | |
70 | - shell: | |
ef63064f | 71 | !include-raw-escape: scripts/lttng-analyses/build.sh |
4f4f6150 | 72 | |
de41e5b5 | 73 | publishers: |
6ba6faca MJ |
74 | - workspace-cleanup: <tng-analyses_publisher_workspace-cleanup_defaults |
75 | clean-if: | |
76 | - failure: false | |
77 | - email-ext: <tng-analyses_publisher_email_ext_defaults | |
a3fd32f1 JR |
78 | recipients: '{obj:email_to}' |
79 | reply-to: ci-notification@lists.lttng.org | |
80 | always: false | |
81 | unstable: false | |
82 | first-failure: true | |
83 | first-unstable: true | |
84 | not-built: false | |
85 | aborted: false | |
86 | regression: false | |
87 | failure: false | |
88 | second-failure: false | |
89 | improvement: false | |
90 | still-failing: false | |
91 | success: false | |
92 | fixed: false | |
93 | fixed-unhealthy: true | |
94 | still-unstable: false | |
95 | pre-build: false | |
96 | matrix-trigger: only-parent | |
97 | send-to: | |
98 | - recipients | |
4f4f6150 | 99 | |
ead62c96 MJ |
100 | - job-template: |
101 | name: lttng-analyses_{version}_pylint | |
102 | defaults: lttng-analyses | |
6ba6faca | 103 | node: 'jammy-amd64' |
ead62c96 MJ |
104 | |
105 | triggers: | |
106 | - pollscm: | |
107 | cron: "@daily" | |
108 | ||
109 | builders: | |
110 | - copyartifact: | |
6ba6faca | 111 | project: dev_upstream_babeltrace_{babeltrace_version}_linuxbuild/platform=jammy-amd64,build=std,conf=python-bindings |
ead62c96 | 112 | which-build: last-successful |
3522265a | 113 | stable: false |
ead62c96 MJ |
114 | filter: 'build/**' |
115 | target: 'deps/babeltrace' | |
116 | - shell: | |
ef63064f | 117 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
ead62c96 MJ |
118 | |
119 | publishers: | |
120 | - archive: | |
6ba6faca MJ |
121 | artifacts: 'pylint.out' |
122 | - workspace-cleanup: *lttng-analyses_publisher_workspace-cleanup_defaults | |
123 | - email-ext: *lttng-analyses_publisher_email_ext_defaults | |
124 | ||
ead62c96 MJ |
125 | |
126 | ## Project | |
127 | - project: | |
128 | name: lttng-analyses | |
51ca880a MJ |
129 | github_user: lttng |
130 | github_name: lttng-analyses | |
2c8e24aa | 131 | email_to: 'ci-notification@lists.lttng.org' |
ead62c96 MJ |
132 | version: |
133 | - master | |
134 | jobs: | |
6ba6faca MJ |
135 | - 'lttng-analyses_{version}_linuxbuild': |
136 | platforms: !!python/tuple [jammy-amd64] | |
137 | babeltrace_versions: !!python/tuple [stable-1.5] | |
21ae1ad6 MJ |
138 | - 'lttng-analyses_{version}_pylint': |
139 | babeltrace_version: stable-1.5 | |
ead62c96 | 140 |