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