Commit | Line | Data |
---|---|---|
91ba8aa1 MJ |
1 | - defaults: |
2 | name: binutils-gdb | |
3 | description: | | |
d322ea80 | 4 | Build and test GDB. |
91ba8aa1 MJ |
5 | |
6 | <p>Job is managed by Jenkins Job Builder.</p> | |
7 | ||
8 | project-type: freestyle | |
9 | ||
10 | wrappers: | |
e901a9db MJ |
11 | - ansicolor: |
12 | colormap: gnome-terminal | |
91ba8aa1 | 13 | - timeout: |
1bba86a0 | 14 | timeout: 180 |
91ba8aa1 | 15 | fail: true |
1bba86a0 | 16 | type: absolute |
e901a9db | 17 | write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>" |
91ba8aa1 | 18 | - timestamps |
e901a9db | 19 | - workspace-cleanup |
91ba8aa1 MJ |
20 | |
21 | scm: | |
22 | - git: | |
23 | url: git://git-mirror.internal.efficios.com/git/binutils-gdb.git | |
24 | branches: | |
25 | - origin/{version} | |
26 | basedir: src/binutils-gdb | |
27 | skip-tag: true | |
28 | ||
29 | triggers: | |
30 | - pollscm: | |
31 | cron: "@hourly" | |
32 | ||
33 | properties: | |
34 | - inject: | |
35 | properties-content: | | |
36 | PROJECT_NAME=gdb | |
37 | - build-discarder: | |
38 | num-to-keep: 10 | |
39 | ||
40 | ||
e901a9db | 41 | ## Anchors |
91ba8aa1 | 42 | |
e901a9db | 43 | # Default matrix axes |
2d62167d | 44 | - _binutils-gdb_matrix_axes_defaults: &binutils-gdb_matrix_axes_defaults |
e901a9db | 45 | name: 'binutils-gdb_matrix_axes_defaults' |
91ba8aa1 MJ |
46 | project-type: matrix |
47 | node: 'master' # Applies only to matrix flyweight task | |
48 | axes: | |
e901a9db | 49 | - axis: &binutils-gdb_matrix_axis_platform |
91ba8aa1 | 50 | type: slave |
e901a9db MJ |
51 | name: platform |
52 | values: '{obj:platforms}' | |
53 | - axis: &binutils-gdb_matrix_axis_target_board | |
748dd275 SM |
54 | type: user-defined |
55 | name: target_board | |
e901a9db | 56 | values: '{obj:target_boards}' |
748dd275 | 57 | |
e901a9db | 58 | # Default builders |
2d62167d | 59 | - _binutils-gdb_builders_defaults: &binutils-gdb_builders_defaults |
e901a9db | 60 | name: 'binutils-gdb_builders_defaults' |
748dd275 SM |
61 | builders: |
62 | - shell: | |
63 | !include-raw-escape: | |
64 | - scripts/common/print.sh | |
65 | - scripts/binutils-gdb/build.sh | |
66 | ||
91ba8aa1 | 67 | |
e901a9db MJ |
68 | ## Templates ## |
69 | - job-template: | |
70 | name: binutils-gdb_{version}_linuxbuild | |
71 | defaults: binutils-gdb | |
72 | ||
73 | <<: *binutils-gdb_matrix_axes_defaults | |
74 | <<: *binutils-gdb_builders_defaults | |
91ba8aa1 MJ |
75 | |
76 | publishers: | |
77 | - archive: | |
fd1d2cae | 78 | artifacts: 'results/**' |
91ba8aa1 MJ |
79 | allow-empty: false |
80 | - junit: | |
81 | results: 'results/*.xml' | |
e901a9db MJ |
82 | - workspace-cleanup: |
83 | clean-if: | |
84 | - failure: false | |
f7ec2896 SM |
85 | - email: |
86 | recipients: 'simon.marchi@efficios.com' | |
91ba8aa1 | 87 | |
f0f8dde0 SM |
88 | - job-template: |
89 | name: binutils-gdb_{version}_macosbuild | |
90 | defaults: binutils-gdb | |
91 | ||
92 | <<: *binutils-gdb_matrix_axes_defaults | |
93 | <<: *binutils-gdb_builders_defaults | |
94 | ||
95 | publishers: | |
e2a30432 MJ |
96 | - workspace-cleanup: |
97 | clean-if: | |
98 | - failure: false | |
f0f8dde0 SM |
99 | - email: |
100 | recipients: 'simon.marchi@efficios.com' | |
101 | ||
91ba8aa1 | 102 | - job-template: |
e3fdf618 | 103 | name: dev_review_binutils-gdb_linuxbuild |
91ba8aa1 MJ |
104 | defaults: binutils-gdb |
105 | concurrent: true | |
106 | ||
107 | scm: | |
108 | - git: | |
109 | url: https://review.lttng.org/binutils-gdb | |
110 | refspec: 'refs/changes/*:refs/changes/*' | |
111 | branches: | |
112 | - '$GERRIT_REFSPEC' | |
113 | basedir: src/binutils-gdb | |
114 | skip-tag: true | |
115 | ||
116 | triggers: | |
117 | - gerrit: | |
118 | trigger-on: | |
119 | - comment-added-event: | |
120 | approval-category: 'CI-Build' | |
121 | approval-value: 1 | |
122 | projects: | |
123 | - project-compare-type: 'PLAIN' | |
124 | project-pattern: 'binutils-gdb' | |
125 | branches: | |
126 | - branch-compare-type: 'ANT' | |
127 | branch-pattern: '**' | |
128 | ||
e901a9db MJ |
129 | <<: *binutils-gdb_matrix_axes_defaults |
130 | <<: *binutils-gdb_builders_defaults | |
91ba8aa1 | 131 | |
f1fd87e0 SM |
132 | publishers: |
133 | - archive: | |
134 | artifacts: 'results/**' | |
135 | allow-empty: false | |
136 | - junit: | |
137 | results: 'results/*.xml' | |
e901a9db MJ |
138 | - workspace-cleanup: |
139 | clean-if: | |
140 | - failure: false | |
f1fd87e0 | 141 | |
91ba8aa1 MJ |
142 | properties: |
143 | - build-discarder: | |
7c048ad8 | 144 | days-to-keep: 7 |
cb797abf MJ |
145 | - throttle: |
146 | option: 'category' | |
147 | categories: | |
148 | - 'review-binutils-gdb' | |
91ba8aa1 MJ |
149 | |
150 | ||
151 | ## Views ## | |
152 | - view-template: | |
153 | name: 'GDB' | |
154 | view-type: list | |
11dfd8be | 155 | regex: '.*binutils-gdb.*' |
91ba8aa1 MJ |
156 | |
157 | ||
158 | ## Projects ## | |
159 | - project: | |
160 | name: binutils-gdb | |
161 | version: | |
162 | - master | |
163 | jobs: | |
e901a9db | 164 | - 'binutils-gdb_{version}_linuxbuild': |
30e5c12c | 165 | platforms: !!python/tuple [deb12-amd64] |
e901a9db | 166 | target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"] |
f0f8dde0 SM |
167 | - 'binutils-gdb_{version}_macosbuild': |
168 | platforms: !!python/tuple [macos-amd64, macos-arm64] | |
169 | target_boards: !!python/tuple ["unix"] | |
91ba8aa1 MJ |
170 | |
171 | - project: | |
e3fdf618 | 172 | name: review-gdb |
91ba8aa1 | 173 | jobs: |
e3fdf618 | 174 | - 'dev_review_binutils-gdb_linuxbuild': |
30e5c12c | 175 | platforms: !!python/tuple [deb12-amd64] |
e901a9db | 176 | target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"] |
91ba8aa1 MJ |
177 | |
178 | - project: | |
179 | name: gdb-views | |
180 | views: | |
181 | - GDB |