jjb: lttng-modules: split gerrit jobs by branch
[lttng-ci.git] / jobs / binutils-gdb.yaml
CommitLineData
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
MJ
44# Default matrix axes
45- binutils-gdb_matrix_axes_defaults: &binutils-gdb_matrix_axes_defaults
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
MJ
59# Default builders
60- binutils-gdb_builders_defaults: &binutils-gdb_builders_defaults
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
MJ
88
89- job-template:
e901a9db 90 name: dev_gerrit_binutils-gdb_linuxbuild
91ba8aa1
MJ
91 defaults: binutils-gdb
92 concurrent: true
93
94 scm:
95 - git:
96 url: https://review.lttng.org/binutils-gdb
97 refspec: 'refs/changes/*:refs/changes/*'
98 branches:
99 - '$GERRIT_REFSPEC'
100 basedir: src/binutils-gdb
101 skip-tag: true
102
103 triggers:
104 - gerrit:
105 trigger-on:
106 - comment-added-event:
107 approval-category: 'CI-Build'
108 approval-value: 1
109 projects:
110 - project-compare-type: 'PLAIN'
111 project-pattern: 'binutils-gdb'
112 branches:
113 - branch-compare-type: 'ANT'
114 branch-pattern: '**'
115
e901a9db
MJ
116 <<: *binutils-gdb_matrix_axes_defaults
117 <<: *binutils-gdb_builders_defaults
91ba8aa1 118
f1fd87e0
SM
119 publishers:
120 - archive:
121 artifacts: 'results/**'
122 allow-empty: false
123 - junit:
124 results: 'results/*.xml'
e901a9db
MJ
125 - workspace-cleanup:
126 clean-if:
127 - failure: false
f1fd87e0 128
91ba8aa1
MJ
129 properties:
130 - build-discarder:
131 days-to-keep: 1
132
133
134## Views ##
135- view-template:
136 name: 'GDB'
137 view-type: list
11dfd8be 138 regex: '.*binutils-gdb.*'
91ba8aa1
MJ
139
140
141## Projects ##
142- project:
143 name: binutils-gdb
144 version:
145 - master
146 jobs:
e901a9db
MJ
147 - 'binutils-gdb_{version}_linuxbuild':
148 platforms: !!python/tuple [jammy-amd64]
149 target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
91ba8aa1
MJ
150
151- project:
152 name: gerrit-gdb
153 jobs:
e901a9db
MJ
154 - 'dev_gerrit_binutils-gdb_linuxbuild':
155 platforms: !!python/tuple [jammy-amd64]
156 target_boards: !!python/tuple ["unix", "native-gdbserver", "native-extended-gdbserver"]
91ba8aa1
MJ
157
158- project:
159 name: gdb-views
160 views:
161 - GDB
This page took 0.02957 seconds and 4 git commands to generate.