blob: 7d4541f3724ae430481283ed0a1e047d454e66e5 [file] [log] [blame]
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -05001---
2###########
3# ANCHORS #
4###########
5- helm_job_boiler_plate: &helm_job_boiler_plate
6 name: helm_job_boiler_plate
7
8 ######################
9 # Default parameters #
10 ######################
11
12 branch: master
13 submodule-recursive: true
14
15 # default params for helm jobs
Jeremy Phelps3cffa432018-08-15 16:26:12 -050016 build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070017 git-url: '$GIT_URL/$PROJECT'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050018 post_build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070019 pre_build_script: ''
Jessica Wagantall11a31f02019-05-13 12:28:14 -070020 submodule-disable: false
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -070021 submodule-timeout: 10
Sylvain Desbureaux5657eda2020-11-26 10:25:39 +010022 build-timeout: 240
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050023
24 #####################
25 # Job Configuration #
26 #####################
27
28 project-type: freestyle
29 node: '{build-node}'
30
31 properties:
32 - lf-infra-properties:
33 build-days-to-keep: '{build-days-to-keep}'
34
35 parameters:
36 - lf-infra-parameters:
37 branch: '{branch}'
38 project: '{project}'
39 stream: '{stream}'
40 lftools-version: '{lftools-version}'
41
42 wrappers:
43 - lf-infra-wrappers:
44 build-timeout: '{build-timeout}'
45 jenkins-ssh-credential: '{jenkins-ssh-credential}'
46
47 publishers:
48 - lf-infra-publish
49
Jeremy Phelps3cffa432018-08-15 16:26:12 -050050#################
51# JOB TEMPLATES #
52#################
53- job-template:
54 name: '{project-name}-{stream}-verify-helm'
55 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050056
Jeremy Phelps3cffa432018-08-15 16:26:12 -050057 <<: *helm_job_boiler_plate
Jessica Wagantall039bb1b2020-03-10 11:42:52 -070058 concurrent: true
Sylvain Desbureaux0da65b92021-02-09 09:42:42 +010059 helm_bin: helm3
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050060
61 scm:
62 - gerrit-trigger-scm:
63 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050064 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050065 submodule-recursive: '{submodule-recursive}'
66
67 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050068 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050069 status-context: '{project}-Helm-Verify'
70 server: '{server-name}'
71 project: '{project}'
72 branch: '{branch}'
Sylvain Desbureaux0da65b92021-02-09 09:42:42 +010073 helm_bin: '{helm_bin}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050074 files: '{files}'
75
Jeremy Phelps3cffa432018-08-15 16:26:12 -050076 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070077 - lf-infra-pre-build
Sylvain Desbureaux0da65b92021-02-09 09:42:42 +010078 - inject:
79 properties-content: 'HELM_BIN={helm_bin}'
Jeremy Phelps3cffa432018-08-15 16:26:12 -050080 - shell: '{obj:pre_build_script}'
81 - shell: '{obj:build_script}'
82
83- job-template:
84 name: '{project-name}-{stream}-merge-helm'
85 # Job template for Helm merge jobs
86
87 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050088
89 scm:
90 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050091 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050092 choosing-strategy: 'default'
93 submodule-recursive: '{submodule-recursive}'
94
95 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050096 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050097 server: '{server-name}'
98 project: '{project}'
99 branch: '{branch}'
100 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500101
102 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700103 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500104 - lf-provide-maven-settings:
105 global-settings-file: '{mvn-global-settings}'
106 settings-file: '{mvn-settings}'
107 - shell: '{obj:pre_build_script}'
108 - shell: '{obj:build_script}'
109 - lf-infra-create-netrc:
110 server-id: oom-helm
111 - inject:
112 properties-content: |
113 BUILD_TYPE=snapshot
114 - shell: '{obj:post_build_script}'
115 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500116
117- job-template:
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700118 name: '{project-name}-{stream}-verify-external-helm'
119 # Job template for helm verify jobs
120
121 <<: *helm_job_boiler_plate
122
123 parameters:
124 - lf-infra-parameters:
125 branch: '{branch}'
126 project: 'oom'
127 stream: '{stream}'
128 lftools-version: '{lftools-version}'
129
130 scm:
131 - lf-infra-gerrit-scm:
132 jenkins-ssh-credential: '{jenkins-ssh-credential}'
133 git-url: '{git-url}'
134 refspec: '$GERRIT_BRANCH'
135 branch: '$GERRIT_BRANCH'
136 submodule-recursive: '{submodule-recursive}'
137 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700138 submodule-disable: '{submodule-disable}'
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700139 choosing-strategy: default
140
141 triggers:
142 - gerrit-trigger-helm-patch-submitted:
143 status-context: '{project}-Helm-Verify'
144 server: '{server-name}'
145 project: '{project}'
146 branch: '{branch}'
147 files: '{files}'
148
149 builders:
150 - lf-infra-pre-build
151 - inject:
152 properties-content: 'HELM_MODULE={helm-module}'
153 - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh
154 - shell: '{obj:pre_build_script}'
155 - shell: '{obj:build_script}'
156
157- job-template:
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700158 name: '{project-name}-{stream}-merge-external-helm'
159 # Job template for Helm merge jobs
160
161 <<: *helm_job_boiler_plate
162
163 parameters:
164 - lf-infra-parameters:
165 branch: '{branch}'
166 project: 'oom'
167 stream: '{stream}'
168 lftools-version: '{lftools-version}'
169
170 scm:
171 - lf-infra-gerrit-scm:
172 jenkins-ssh-credential: '{jenkins-ssh-credential}'
173 git-url: '{git-url}'
174 refspec: '$GERRIT_BRANCH'
175 branch: '$GERRIT_BRANCH'
176 submodule-recursive: '{submodule-recursive}'
177 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700178 submodule-disable: '{submodule-disable}'
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700179 choosing-strategy: default
180
181 triggers:
182 - gerrit-trigger-helm-patch-merged:
183 server: '{server-name}'
184 project: '{project}'
185 branch: '{branch}'
186 files: '{files}'
187
188 builders:
189 - lf-infra-pre-build
190 - inject:
191 properties-content: 'HELM_MODULE={helm-module}'
192 - lf-provide-maven-settings:
193 global-settings-file: 'global-settings'
194 settings-file: '{mvn-settings}'
195 - shell: '{obj:pre_build_script}'
196 - shell: '{obj:build_script}'
197 - lf-infra-create-netrc:
198 server-id: oom-helm
199 - inject:
200 properties-content: |
201 BUILD_TYPE=snapshot
202 - shell: '{obj:post_build_script}'
203 - lf-provide-maven-settings-cleanup
204
205- job-template:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800206 name: '{project-name}-{stream}-release-helm'
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500207 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500208
209 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500210
211 scm:
212 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500213 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500214 choosing-strategy: 'default'
215 submodule-recursive: '{submodule-recursive}'
216
217 triggers:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500218 - gerrit:
219 trigger-on:
220 - comment-added-contains-event:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800221 comment-contains-value: '^release-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500222
223 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700224 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500225 - lf-provide-maven-settings:
226 global-settings-file: '{mvn-global-settings}'
227 settings-file: '{mvn-settings}'
228 - shell: '{obj:pre_build_script}'
229 - shell: '{obj:build_script}'
230 - lf-infra-create-netrc:
231 server-id: oom-helm
232 - inject:
233 properties-content: |
Jessica Wagantall019550b2020-12-21 12:24:30 -0800234 BUILD_TYPE=release
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500235 - shell: '{obj:post_build_script}'
236 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500237
238- job-template:
239 name: '{project-name}-{subproject}-{stream}-verify-helm'
240 # Job template for helm verify jobs
241
242 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500243
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500244 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500245 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700246 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500247 - shell: '{pre_build_script}'
248 - shell: '{build_script}'
249 - shell: '{post_build_script}'
250
251- job-template:
252 name: '{project-name}-{subproject}-{stream}-merge-helm'
253 # Job template for helm merge jobs
254
255 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500256
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500257 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500258 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700259 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500260 - shell: '{pre_build_script}'
261 - shell: '{build_script}'
262 - shell: '{post_build_script}'
263
264- job-template:
265 name: '{project-name}-{stream}-update-helm-weekly'
266 # Job template for weekly helm update jobs
267 #
268 # Required Variables:
269 # branch: git branch (eg. stable/lithium or master)
270 <<: *helm_job_boiler_plate
271
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500272 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500273 scm:
274 - lf-infra-gerrit-scm:
275 jenkins-ssh-credential: '{jenkins-ssh-credential}'
276 git-url: '$GIT_URL/$PROJECT'
277 refspec: '$GERRIT_REFSPEC'
278 branch: '$GERRIT_BRANCH'
279 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700280 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700281 submodule-disable: '{submodule-disable}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500282 choosing-strategy: default
283
284 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700285 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500286 - shell: '{pre_build_script}'
287 - shell: '{build_script}'
288 - shell: '{post_build_script}'
289
290 triggers:
291 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700292 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500293 - gerrit-trigger-release-manually:
294 server: '{server-name}'
295 project: '{project}'
296 branch: '{branch}'