blob: d6f1374ef2611e78cfc0c15bba9722ca3edb8627 [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
Eric Balle2b7d3c2020-10-08 11:33:05 -070022 build-timeout: 180
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:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500202 name: '{project-name}-{stream}-stage-helm'
203 # 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:
214 - pollscm:
215 cron: '0 22 * * *'
216 - gerrit:
217 trigger-on:
218 - comment-added-contains-event:
219 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500220
221 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700222 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500223 - lf-provide-maven-settings:
224 global-settings-file: '{mvn-global-settings}'
225 settings-file: '{mvn-settings}'
226 - shell: '{obj:pre_build_script}'
227 - shell: '{obj:build_script}'
228 - lf-infra-create-netrc:
229 server-id: oom-helm
230 - inject:
231 properties-content: |
232 BUILD_TYPE=staging
233 - shell: '{obj:post_build_script}'
234 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500235
236- job-template:
237 name: '{project-name}-{subproject}-{stream}-verify-helm'
238 # Job template for helm verify jobs
239
240 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500241
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500242 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500243 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700244 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500245 - shell: '{pre_build_script}'
246 - shell: '{build_script}'
247 - shell: '{post_build_script}'
248
249- job-template:
250 name: '{project-name}-{subproject}-{stream}-merge-helm'
251 # Job template for helm merge jobs
252
253 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500254
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500255 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500256 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700257 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500258 - shell: '{pre_build_script}'
259 - shell: '{build_script}'
260 - shell: '{post_build_script}'
261
262- job-template:
263 name: '{project-name}-{stream}-update-helm-weekly'
264 # Job template for weekly helm update jobs
265 #
266 # Required Variables:
267 # branch: git branch (eg. stable/lithium or master)
268 <<: *helm_job_boiler_plate
269
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500270 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500271 scm:
272 - lf-infra-gerrit-scm:
273 jenkins-ssh-credential: '{jenkins-ssh-credential}'
274 git-url: '$GIT_URL/$PROJECT'
275 refspec: '$GERRIT_REFSPEC'
276 branch: '$GERRIT_BRANCH'
277 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700278 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700279 submodule-disable: '{submodule-disable}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500280 choosing-strategy: default
281
282 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700283 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500284 - shell: '{pre_build_script}'
285 - shell: '{build_script}'
286 - shell: '{post_build_script}'
287
288 triggers:
289 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700290 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500291 - gerrit-trigger-release-manually:
292 server: '{server-name}'
293 project: '{project}'
294 branch: '{branch}'