blob: 0e5986ab527fa2d0c47f7ee9437de43854130f84 [file] [log] [blame]
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -05001---
Jessica Wagantall48a6b4c2021-08-02 20:19:36 -07002############
3# BUILDERS #
4############
5
6- builder:
7 name: oom-create-netrc
8 builders:
9 - inject:
10 properties-content: "SERVER_ID={server-id}"
11 - shell: !include-raw-escape: ../shell/oom-create-netrc.sh
12
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050013###########
14# ANCHORS #
15###########
16- helm_job_boiler_plate: &helm_job_boiler_plate
17 name: helm_job_boiler_plate
18
19 ######################
20 # Default parameters #
21 ######################
22
23 branch: master
24 submodule-recursive: true
25
26 # default params for helm jobs
Jeremy Phelps3cffa432018-08-15 16:26:12 -050027 build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070028 git-url: '$GIT_URL/$PROJECT'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050029 post_build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070030 pre_build_script: ''
Jessica Wagantall11a31f02019-05-13 12:28:14 -070031 submodule-disable: false
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -070032 submodule-timeout: 10
Sylvain Desbureaux5657eda2020-11-26 10:25:39 +010033 build-timeout: 240
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050034
35 #####################
36 # Job Configuration #
37 #####################
38
39 project-type: freestyle
40 node: '{build-node}'
41
42 properties:
43 - lf-infra-properties:
44 build-days-to-keep: '{build-days-to-keep}'
45
46 parameters:
47 - lf-infra-parameters:
48 branch: '{branch}'
49 project: '{project}'
50 stream: '{stream}'
51 lftools-version: '{lftools-version}'
52
53 wrappers:
54 - lf-infra-wrappers:
55 build-timeout: '{build-timeout}'
56 jenkins-ssh-credential: '{jenkins-ssh-credential}'
57
58 publishers:
59 - lf-infra-publish
60
Jeremy Phelps3cffa432018-08-15 16:26:12 -050061#################
62# JOB TEMPLATES #
63#################
64- job-template:
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +010065 name: '{project-name}-{stream}-verify-{helm_bin}'
Jeremy Phelps3cffa432018-08-15 16:26:12 -050066 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050067
Jeremy Phelps3cffa432018-08-15 16:26:12 -050068 <<: *helm_job_boiler_plate
Jessica Wagantall039bb1b2020-03-10 11:42:52 -070069 concurrent: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050070
71 scm:
72 - gerrit-trigger-scm:
73 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050074 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050075 submodule-recursive: '{submodule-recursive}'
76
77 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050078 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050079 status-context: '{project}-Helm-Verify'
80 server: '{server-name}'
81 project: '{project}'
82 branch: '{branch}'
Sylvain Desbureaux0da65b92021-02-09 09:42:42 +010083 helm_bin: '{helm_bin}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050084 files: '{files}'
85
Jeremy Phelps3cffa432018-08-15 16:26:12 -050086 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070087 - lf-infra-pre-build
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +010088 - shell: |
89 echo "export HELM_BIN={helm_bin}" > helm.prop
Jeremy Phelps3cffa432018-08-15 16:26:12 -050090 - shell: '{obj:pre_build_script}'
91 - shell: '{obj:build_script}'
92
93- job-template:
94 name: '{project-name}-{stream}-merge-helm'
95 # Job template for Helm merge jobs
96
97 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050098
99 scm:
100 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500101 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500102 choosing-strategy: 'default'
103 submodule-recursive: '{submodule-recursive}'
104
105 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500106 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500107 server: '{server-name}'
108 project: '{project}'
109 branch: '{branch}'
110 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500111
112 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700113 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500114 - lf-provide-maven-settings:
115 global-settings-file: '{mvn-global-settings}'
116 settings-file: '{mvn-settings}'
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100117 - shell: |
118 echo "export HELM_BIN=helm3.5" > helm.prop
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500119 - shell: '{obj:pre_build_script}'
120 - shell: '{obj:build_script}'
Jessica Wagantall48a6b4c2021-08-02 20:19:36 -0700121 - oom-create-netrc:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500122 server-id: oom-helm
123 - inject:
124 properties-content: |
125 BUILD_TYPE=snapshot
126 - shell: '{obj:post_build_script}'
127 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500128
129- job-template:
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700130 name: '{project-name}-{stream}-verify-external-helm'
131 # Job template for helm verify jobs
132
133 <<: *helm_job_boiler_plate
134
135 parameters:
136 - lf-infra-parameters:
137 branch: '{branch}'
138 project: 'oom'
139 stream: '{stream}'
140 lftools-version: '{lftools-version}'
141
142 scm:
143 - lf-infra-gerrit-scm:
144 jenkins-ssh-credential: '{jenkins-ssh-credential}'
145 git-url: '{git-url}'
146 refspec: '$GERRIT_BRANCH'
147 branch: '$GERRIT_BRANCH'
148 submodule-recursive: '{submodule-recursive}'
149 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700150 submodule-disable: '{submodule-disable}'
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700151 choosing-strategy: default
152
153 triggers:
154 - gerrit-trigger-helm-patch-submitted:
155 status-context: '{project}-Helm-Verify'
156 server: '{server-name}'
157 project: '{project}'
158 branch: '{branch}'
159 files: '{files}'
160
161 builders:
162 - lf-infra-pre-build
163 - inject:
164 properties-content: 'HELM_MODULE={helm-module}'
165 - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100166 - shell: |
167 echo "export HELM_BIN=helm3.5" > helm.prop
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700168 - shell: '{obj:pre_build_script}'
169 - shell: '{obj:build_script}'
170
171- job-template:
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700172 name: '{project-name}-{stream}-merge-external-helm'
173 # Job template for Helm merge jobs
174
175 <<: *helm_job_boiler_plate
176
177 parameters:
178 - lf-infra-parameters:
179 branch: '{branch}'
180 project: 'oom'
181 stream: '{stream}'
182 lftools-version: '{lftools-version}'
183
184 scm:
185 - lf-infra-gerrit-scm:
186 jenkins-ssh-credential: '{jenkins-ssh-credential}'
187 git-url: '{git-url}'
188 refspec: '$GERRIT_BRANCH'
189 branch: '$GERRIT_BRANCH'
190 submodule-recursive: '{submodule-recursive}'
191 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700192 submodule-disable: '{submodule-disable}'
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700193 choosing-strategy: default
194
195 triggers:
196 - gerrit-trigger-helm-patch-merged:
197 server: '{server-name}'
198 project: '{project}'
199 branch: '{branch}'
200 files: '{files}'
201
202 builders:
203 - lf-infra-pre-build
204 - inject:
205 properties-content: 'HELM_MODULE={helm-module}'
206 - lf-provide-maven-settings:
207 global-settings-file: 'global-settings'
208 settings-file: '{mvn-settings}'
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100209 - shell: |
210 echo "export HELM_BIN=helm3.5" > helm.prop
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700211 - shell: '{obj:pre_build_script}'
212 - shell: '{obj:build_script}'
213 - lf-infra-create-netrc:
214 server-id: oom-helm
215 - inject:
216 properties-content: |
217 BUILD_TYPE=snapshot
218 - shell: '{obj:post_build_script}'
219 - lf-provide-maven-settings-cleanup
220
221- job-template:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800222 name: '{project-name}-{stream}-release-helm'
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500223 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500224
225 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500226
227 scm:
228 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500229 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500230 choosing-strategy: 'default'
231 submodule-recursive: '{submodule-recursive}'
232
233 triggers:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500234 - gerrit:
235 trigger-on:
236 - comment-added-contains-event:
Sylvain Desbureaux36dcc772021-06-17 22:21:44 +0200237 comment-contains-value: '^Patch Set\s+\d+:\s+release-helm\s*$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500238
239 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700240 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500241 - lf-provide-maven-settings:
242 global-settings-file: '{mvn-global-settings}'
243 settings-file: '{mvn-settings}'
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100244 - shell: |
245 echo "export HELM_BIN=helm3.5" > helm.prop
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500246 - shell: '{obj:pre_build_script}'
247 - shell: '{obj:build_script}'
248 - lf-infra-create-netrc:
249 server-id: oom-helm
250 - inject:
251 properties-content: |
Jessica Wagantall019550b2020-12-21 12:24:30 -0800252 BUILD_TYPE=release
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500253 - shell: '{obj:post_build_script}'
254 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500255
256- job-template:
257 name: '{project-name}-{subproject}-{stream}-verify-helm'
258 # Job template for helm verify jobs
259
260 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500261
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500262 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500263 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700264 - lf-infra-pre-build
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100265 - shell: |
266 echo "export HELM_BIN=helm3.5" > helm.prop
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500267 - shell: '{pre_build_script}'
268 - shell: '{build_script}'
269 - shell: '{post_build_script}'
270
271- job-template:
272 name: '{project-name}-{subproject}-{stream}-merge-helm'
273 # Job template for helm merge jobs
274
275 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500276
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500277 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500278 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700279 - lf-infra-pre-build
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100280 - shell: |
281 echo "export HELM_BIN=helm3.5" > helm.prop
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500282 - shell: '{pre_build_script}'
283 - shell: '{build_script}'
Sylvain Desbureaux36dcc772021-06-17 22:21:44 +0200284 - inject:
285 properties-content: |
286 BUILD_TYPE=snapshot
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500287 - shell: '{post_build_script}'
288
289- job-template:
290 name: '{project-name}-{stream}-update-helm-weekly'
291 # Job template for weekly helm update jobs
292 #
293 # Required Variables:
294 # branch: git branch (eg. stable/lithium or master)
295 <<: *helm_job_boiler_plate
296
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500297 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500298 scm:
299 - lf-infra-gerrit-scm:
300 jenkins-ssh-credential: '{jenkins-ssh-credential}'
301 git-url: '$GIT_URL/$PROJECT'
302 refspec: '$GERRIT_REFSPEC'
303 branch: '$GERRIT_BRANCH'
304 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700305 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700306 submodule-disable: '{submodule-disable}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500307 choosing-strategy: default
308
309 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700310 - lf-infra-pre-build
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +0100311 - shell: |
312 echo "export HELM_BIN=helm3.5" > helm.prop
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500313 - shell: '{pre_build_script}'
314 - shell: '{build_script}'
315 - shell: '{post_build_script}'
316
317 triggers:
318 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700319 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500320 - gerrit-trigger-release-manually:
321 server: '{server-name}'
322 project: '{project}'
323 branch: '{branch}'