blob: 2697d1871896f30db69b3a69be09ec44e9c9c806 [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
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050059
60 scm:
61 - gerrit-trigger-scm:
62 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050063 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050064 submodule-recursive: '{submodule-recursive}'
65
66 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050067 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050068 status-context: '{project}-Helm-Verify'
69 server: '{server-name}'
70 project: '{project}'
71 branch: '{branch}'
72 files: '{files}'
73
Jeremy Phelps3cffa432018-08-15 16:26:12 -050074 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070075 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050076 - shell: '{obj:pre_build_script}'
77 - shell: '{obj:build_script}'
78
79- job-template:
80 name: '{project-name}-{stream}-merge-helm'
81 # Job template for Helm merge jobs
82
83 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050084
85 scm:
86 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050087 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050088 choosing-strategy: 'default'
89 submodule-recursive: '{submodule-recursive}'
90
91 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050092 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050093 server: '{server-name}'
94 project: '{project}'
95 branch: '{branch}'
96 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050097
98 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070099 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500100 - lf-provide-maven-settings:
101 global-settings-file: '{mvn-global-settings}'
102 settings-file: '{mvn-settings}'
103 - shell: '{obj:pre_build_script}'
104 - shell: '{obj:build_script}'
105 - lf-infra-create-netrc:
106 server-id: oom-helm
107 - inject:
108 properties-content: |
109 BUILD_TYPE=snapshot
110 - shell: '{obj:post_build_script}'
111 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500112
113- job-template:
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700114 name: '{project-name}-{stream}-verify-external-helm'
115 # Job template for helm verify jobs
116
117 <<: *helm_job_boiler_plate
118
119 parameters:
120 - lf-infra-parameters:
121 branch: '{branch}'
122 project: 'oom'
123 stream: '{stream}'
124 lftools-version: '{lftools-version}'
125
126 scm:
127 - lf-infra-gerrit-scm:
128 jenkins-ssh-credential: '{jenkins-ssh-credential}'
129 git-url: '{git-url}'
130 refspec: '$GERRIT_BRANCH'
131 branch: '$GERRIT_BRANCH'
132 submodule-recursive: '{submodule-recursive}'
133 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700134 submodule-disable: '{submodule-disable}'
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700135 choosing-strategy: default
136
137 triggers:
138 - gerrit-trigger-helm-patch-submitted:
139 status-context: '{project}-Helm-Verify'
140 server: '{server-name}'
141 project: '{project}'
142 branch: '{branch}'
143 files: '{files}'
144
145 builders:
146 - lf-infra-pre-build
147 - inject:
148 properties-content: 'HELM_MODULE={helm-module}'
149 - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh
150 - shell: '{obj:pre_build_script}'
151 - shell: '{obj:build_script}'
152
153- job-template:
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700154 name: '{project-name}-{stream}-merge-external-helm'
155 # Job template for Helm merge jobs
156
157 <<: *helm_job_boiler_plate
158
159 parameters:
160 - lf-infra-parameters:
161 branch: '{branch}'
162 project: 'oom'
163 stream: '{stream}'
164 lftools-version: '{lftools-version}'
165
166 scm:
167 - lf-infra-gerrit-scm:
168 jenkins-ssh-credential: '{jenkins-ssh-credential}'
169 git-url: '{git-url}'
170 refspec: '$GERRIT_BRANCH'
171 branch: '$GERRIT_BRANCH'
172 submodule-recursive: '{submodule-recursive}'
173 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700174 submodule-disable: '{submodule-disable}'
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700175 choosing-strategy: default
176
177 triggers:
178 - gerrit-trigger-helm-patch-merged:
179 server: '{server-name}'
180 project: '{project}'
181 branch: '{branch}'
182 files: '{files}'
183
184 builders:
185 - lf-infra-pre-build
186 - inject:
187 properties-content: 'HELM_MODULE={helm-module}'
188 - lf-provide-maven-settings:
189 global-settings-file: 'global-settings'
190 settings-file: '{mvn-settings}'
191 - shell: '{obj:pre_build_script}'
192 - shell: '{obj:build_script}'
193 - lf-infra-create-netrc:
194 server-id: oom-helm
195 - inject:
196 properties-content: |
197 BUILD_TYPE=snapshot
198 - shell: '{obj:post_build_script}'
199 - lf-provide-maven-settings-cleanup
200
201- job-template:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800202 name: '{project-name}-{stream}-release-helm'
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500203 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500204
205 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500206
207 scm:
208 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500209 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500210 choosing-strategy: 'default'
211 submodule-recursive: '{submodule-recursive}'
212
213 triggers:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500214 - gerrit:
215 trigger-on:
216 - comment-added-contains-event:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800217 comment-contains-value: '^release-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500218
219 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700220 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500221 - lf-provide-maven-settings:
222 global-settings-file: '{mvn-global-settings}'
223 settings-file: '{mvn-settings}'
224 - shell: '{obj:pre_build_script}'
225 - shell: '{obj:build_script}'
226 - lf-infra-create-netrc:
227 server-id: oom-helm
228 - inject:
229 properties-content: |
Jessica Wagantall019550b2020-12-21 12:24:30 -0800230 BUILD_TYPE=release
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500231 - shell: '{obj:post_build_script}'
232 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500233
234- job-template:
235 name: '{project-name}-{subproject}-{stream}-verify-helm'
236 # Job template for helm verify jobs
237
238 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500239
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500240 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500241 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700242 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500243 - shell: '{pre_build_script}'
244 - shell: '{build_script}'
245 - shell: '{post_build_script}'
246
247- job-template:
248 name: '{project-name}-{subproject}-{stream}-merge-helm'
249 # Job template for helm merge jobs
250
251 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500252
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500253 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500254 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700255 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500256 - shell: '{pre_build_script}'
257 - shell: '{build_script}'
258 - shell: '{post_build_script}'
259
260- job-template:
261 name: '{project-name}-{stream}-update-helm-weekly'
262 # Job template for weekly helm update jobs
263 #
264 # Required Variables:
265 # branch: git branch (eg. stable/lithium or master)
266 <<: *helm_job_boiler_plate
267
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500268 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500269 scm:
270 - lf-infra-gerrit-scm:
271 jenkins-ssh-credential: '{jenkins-ssh-credential}'
272 git-url: '$GIT_URL/$PROJECT'
273 refspec: '$GERRIT_REFSPEC'
274 branch: '$GERRIT_BRANCH'
275 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700276 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700277 submodule-disable: '{submodule-disable}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500278 choosing-strategy: default
279
280 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700281 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500282 - shell: '{pre_build_script}'
283 - shell: '{build_script}'
284 - shell: '{post_build_script}'
285
286 triggers:
287 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700288 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500289 - gerrit-trigger-release-manually:
290 server: '{server-name}'
291 project: '{project}'
292 branch: '{branch}'