36e52f7f7c78c41e8b801528041faaa861f9659f
[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 artifact-num-to-keep: 2
40
41
42 ## Anchors
43
44 # Default matrix axes
45 - _binutils-gdb_matrix_axes_defaults: &binutils-gdb_matrix_axes_defaults
46 name: 'binutils-gdb_matrix_axes_defaults'
47 project-type: matrix
48 node: 'master' # Applies only to matrix flyweight task
49 axes:
50 - axis: &binutils-gdb_matrix_axis_platform
51 type: slave
52 name: platform
53 values: '{obj:platforms}'
54 - axis: &binutils-gdb_matrix_axis_target_board
55 type: user-defined
56 name: target_board
57 values: '{obj:target_boards}'
58
59 # Default builders
60 - _binutils-gdb_builders_defaults: &binutils-gdb_builders_defaults
61 name: 'binutils-gdb_builders_defaults'
62 builders:
63 - shell:
64 !include-raw-escape:
65 - scripts/common/print.sh
66 - scripts/binutils-gdb/build.sh
67
68
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
76
77 publishers:
78 - archive:
79 artifacts: 'build/**,results/**'
80 allow-empty: false
81 - junit:
82 results: 'results/*.xml'
83 - workspace-cleanup:
84 clean-if:
85 - failure: false
86 - email:
87 recipients: 'simon.marchi@efficios.com'
88
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
100 - job-template:
101 name: dev_gerrit_binutils-gdb_linuxbuild
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
127 <<: *binutils-gdb_matrix_axes_defaults
128 <<: *binutils-gdb_builders_defaults
129
130 publishers:
131 - archive:
132 artifacts: 'results/**'
133 allow-empty: false
134 - junit:
135 results: 'results/*.xml'
136 - workspace-cleanup:
137 clean-if:
138 - failure: false
139
140 properties:
141 - build-discarder:
142 days-to-keep: 1
143
144
145 ## Views ##
146 - view-template:
147 name: 'GDB'
148 view-type: list
149 regex: '.*binutils-gdb.*'
150
151
152 ## Projects ##
153 - project:
154 name: binutils-gdb
155 version:
156 - master
157 jobs:
158 - 'binutils-gdb_{version}_linuxbuild':
159 platforms: !!python/tuple [jammy-amd64]
160 target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
161 - 'binutils-gdb_{version}_macosbuild':
162 platforms: !!python/tuple [macos-amd64, macos-arm64]
163 target_boards: !!python/tuple ["unix"]
164
165 - project:
166 name: gerrit-gdb
167 jobs:
168 - 'dev_gerrit_binutils-gdb_linuxbuild':
169 platforms: !!python/tuple [jammy-amd64]
170 target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
171
172 - project:
173 name: gdb-views
174 views:
175 - GDB
This page took 0.041003 seconds and 4 git commands to generate.