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 MJ |
13 | - timeout: |
14 | timeout: 20 | |
15 | fail: true | |
16 | type: no-activity | |
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 | |
3b228cdd | 39 | artifact-num-to-keep: 2 |
91ba8aa1 MJ |
40 | |
41 | ||
e901a9db | 42 | ## Anchors |
91ba8aa1 | 43 | |
e901a9db | 44 | # Default matrix axes |
2d62167d | 45 | - _binutils-gdb_matrix_axes_defaults: &binutils-gdb_matrix_axes_defaults |
e901a9db | 46 | name: 'binutils-gdb_matrix_axes_defaults' |
91ba8aa1 MJ |
47 | project-type: matrix |
48 | node: 'master' # Applies only to matrix flyweight task | |
49 | axes: | |
e901a9db | 50 | - axis: &binutils-gdb_matrix_axis_platform |
91ba8aa1 | 51 | type: slave |
e901a9db MJ |
52 | name: platform |
53 | values: '{obj:platforms}' | |
54 | - axis: &binutils-gdb_matrix_axis_target_board | |
748dd275 SM |
55 | type: user-defined |
56 | name: target_board | |
e901a9db | 57 | values: '{obj:target_boards}' |
748dd275 | 58 | |
e901a9db | 59 | # Default builders |
2d62167d | 60 | - _binutils-gdb_builders_defaults: &binutils-gdb_builders_defaults |
e901a9db | 61 | name: 'binutils-gdb_builders_defaults' |
748dd275 SM |
62 | builders: |
63 | - shell: | |
64 | !include-raw-escape: | |
65 | - scripts/common/print.sh | |
66 | - scripts/binutils-gdb/build.sh | |
67 | ||
91ba8aa1 | 68 | |
e901a9db MJ |
69 | ## Templates ## |
70 | - job-template: | |
71 | name: binutils-gdb_{version}_linuxbuild | |
72 | defaults: binutils-gdb | |
73 | ||
74 | <<: *binutils-gdb_matrix_axes_defaults | |
75 | <<: *binutils-gdb_builders_defaults | |
91ba8aa1 MJ |
76 | |
77 | publishers: | |
78 | - archive: | |
79 | artifacts: 'build/**,results/**' | |
80 | allow-empty: false | |
81 | - junit: | |
82 | results: 'results/*.xml' | |
e901a9db MJ |
83 | - workspace-cleanup: |
84 | clean-if: | |
85 | - failure: false | |
f7ec2896 SM |
86 | - email: |
87 | recipients: 'simon.marchi@efficios.com' | |
91ba8aa1 | 88 | |
f0f8dde0 SM |
89 | - job-template: |
90 | name: binutils-gdb_{version}_macosbuild | |
91 | defaults: binutils-gdb | |
92 | ||
93 | <<: *binutils-gdb_matrix_axes_defaults | |
94 | <<: *binutils-gdb_builders_defaults | |
95 | ||
96 | publishers: | |
97 | - email: | |
98 | recipients: 'simon.marchi@efficios.com' | |
99 | ||
91ba8aa1 | 100 | - job-template: |
e901a9db | 101 | name: dev_gerrit_binutils-gdb_linuxbuild |
91ba8aa1 MJ |
102 | defaults: binutils-gdb |
103 | concurrent: true | |
104 | ||
105 | scm: | |
106 | - git: | |
107 | url: https://review.lttng.org/binutils-gdb | |
108 | refspec: 'refs/changes/*:refs/changes/*' | |
109 | branches: | |
110 | - '$GERRIT_REFSPEC' | |
111 | basedir: src/binutils-gdb | |
112 | skip-tag: true | |
113 | ||
114 | triggers: | |
115 | - gerrit: | |
116 | trigger-on: | |
117 | - comment-added-event: | |
118 | approval-category: 'CI-Build' | |
119 | approval-value: 1 | |
120 | projects: | |
121 | - project-compare-type: 'PLAIN' | |
122 | project-pattern: 'binutils-gdb' | |
123 | branches: | |
124 | - branch-compare-type: 'ANT' | |
125 | branch-pattern: '**' | |
126 | ||
e901a9db MJ |
127 | <<: *binutils-gdb_matrix_axes_defaults |
128 | <<: *binutils-gdb_builders_defaults | |
91ba8aa1 | 129 | |
f1fd87e0 SM |
130 | publishers: |
131 | - archive: | |
132 | artifacts: 'results/**' | |
133 | allow-empty: false | |
134 | - junit: | |
135 | results: 'results/*.xml' | |
e901a9db MJ |
136 | - workspace-cleanup: |
137 | clean-if: | |
138 | - failure: false | |
f1fd87e0 | 139 | |
91ba8aa1 MJ |
140 | properties: |
141 | - build-discarder: | |
142 | days-to-keep: 1 | |
143 | ||
144 | ||
145 | ## Views ## | |
146 | - view-template: | |
147 | name: 'GDB' | |
148 | view-type: list | |
11dfd8be | 149 | regex: '.*binutils-gdb.*' |
91ba8aa1 MJ |
150 | |
151 | ||
152 | ## Projects ## | |
153 | - project: | |
154 | name: binutils-gdb | |
155 | version: | |
156 | - master | |
157 | jobs: | |
e901a9db MJ |
158 | - 'binutils-gdb_{version}_linuxbuild': |
159 | platforms: !!python/tuple [jammy-amd64] | |
160 | target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"] | |
f0f8dde0 SM |
161 | - 'binutils-gdb_{version}_macosbuild': |
162 | platforms: !!python/tuple [macos-amd64, macos-arm64] | |
163 | target_boards: !!python/tuple ["unix"] | |
91ba8aa1 MJ |
164 | |
165 | - project: | |
166 | name: gerrit-gdb | |
167 | jobs: | |
e901a9db MJ |
168 | - 'dev_gerrit_binutils-gdb_linuxbuild': |
169 | platforms: !!python/tuple [jammy-amd64] | |
170 | target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"] | |
91ba8aa1 MJ |
171 | |
172 | - project: | |
173 | name: gdb-views | |
174 | views: | |
175 | - GDB |