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