blob: 12ce9a3836264536b744e29141799f68f6cfd24c [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 Wagantallabff9c02019-04-08 16:35:10 -070021 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -070022 submodule-timeout: 10
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
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050058
59 scm:
60 - gerrit-trigger-scm:
61 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050062 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050063 submodule-recursive: '{submodule-recursive}'
64
65 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050066 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050067 status-context: '{project}-Helm-Verify'
68 server: '{server-name}'
69 project: '{project}'
70 branch: '{branch}'
71 files: '{files}'
72
Jeremy Phelps3cffa432018-08-15 16:26:12 -050073 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070074 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050075 - shell: '{obj:pre_build_script}'
76 - shell: '{obj:build_script}'
77
78- job-template:
79 name: '{project-name}-{stream}-merge-helm'
80 # Job template for Helm merge jobs
81
82 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050083
84 scm:
85 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050086 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050087 choosing-strategy: 'default'
88 submodule-recursive: '{submodule-recursive}'
89
90 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050091 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050092 server: '{server-name}'
93 project: '{project}'
94 branch: '{branch}'
95 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050096
97 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070098 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050099 - lf-provide-maven-settings:
100 global-settings-file: '{mvn-global-settings}'
101 settings-file: '{mvn-settings}'
102 - shell: '{obj:pre_build_script}'
103 - shell: '{obj:build_script}'
104 - lf-infra-create-netrc:
105 server-id: oom-helm
106 - inject:
107 properties-content: |
108 BUILD_TYPE=snapshot
109 - shell: '{obj:post_build_script}'
110 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500111
112- job-template:
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700113 name: '{project-name}-{stream}-verify-external-helm'
114 # Job template for helm verify jobs
115
116 <<: *helm_job_boiler_plate
117
118 parameters:
119 - lf-infra-parameters:
120 branch: '{branch}'
121 project: 'oom'
122 stream: '{stream}'
123 lftools-version: '{lftools-version}'
124
125 scm:
126 - lf-infra-gerrit-scm:
127 jenkins-ssh-credential: '{jenkins-ssh-credential}'
128 git-url: '{git-url}'
129 refspec: '$GERRIT_BRANCH'
130 branch: '$GERRIT_BRANCH'
131 submodule-recursive: '{submodule-recursive}'
132 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700133 submodule-disable: '{submodule-disable}'
Jessica Wagantallabff9c02019-04-08 16:35:10 -0700134 choosing-strategy: default
135
136 triggers:
137 - gerrit-trigger-helm-patch-submitted:
138 status-context: '{project}-Helm-Verify'
139 server: '{server-name}'
140 project: '{project}'
141 branch: '{branch}'
142 files: '{files}'
143
144 builders:
145 - lf-infra-pre-build
146 - inject:
147 properties-content: 'HELM_MODULE={helm-module}'
148 - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh
149 - shell: '{obj:pre_build_script}'
150 - shell: '{obj:build_script}'
151
152- job-template:
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700153 name: '{project-name}-{stream}-merge-external-helm'
154 # Job template for Helm merge jobs
155
156 <<: *helm_job_boiler_plate
157
158 parameters:
159 - lf-infra-parameters:
160 branch: '{branch}'
161 project: 'oom'
162 stream: '{stream}'
163 lftools-version: '{lftools-version}'
164
165 scm:
166 - lf-infra-gerrit-scm:
167 jenkins-ssh-credential: '{jenkins-ssh-credential}'
168 git-url: '{git-url}'
169 refspec: '$GERRIT_BRANCH'
170 branch: '$GERRIT_BRANCH'
171 submodule-recursive: '{submodule-recursive}'
172 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700173 submodule-disable: '{submodule-disable}'
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700174 choosing-strategy: default
175
176 triggers:
177 - gerrit-trigger-helm-patch-merged:
178 server: '{server-name}'
179 project: '{project}'
180 branch: '{branch}'
181 files: '{files}'
182
183 builders:
184 - lf-infra-pre-build
185 - inject:
186 properties-content: 'HELM_MODULE={helm-module}'
187 - lf-provide-maven-settings:
188 global-settings-file: 'global-settings'
189 settings-file: '{mvn-settings}'
190 - shell: '{obj:pre_build_script}'
191 - shell: '{obj:build_script}'
192 - lf-infra-create-netrc:
193 server-id: oom-helm
194 - inject:
195 properties-content: |
196 BUILD_TYPE=snapshot
197 - shell: '{obj:post_build_script}'
198 - lf-provide-maven-settings-cleanup
199
200- job-template:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500201 name: '{project-name}-{stream}-stage-helm'
202 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500203
204 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500205
206 scm:
207 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500208 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500209 choosing-strategy: 'default'
210 submodule-recursive: '{submodule-recursive}'
211
212 triggers:
213 - pollscm:
214 cron: '0 22 * * *'
215 - gerrit:
216 trigger-on:
217 - comment-added-contains-event:
218 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500219
220 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700221 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500222 - lf-provide-maven-settings:
223 global-settings-file: '{mvn-global-settings}'
224 settings-file: '{mvn-settings}'
225 - shell: '{obj:pre_build_script}'
226 - shell: '{obj:build_script}'
227 - lf-infra-create-netrc:
228 server-id: oom-helm
229 - inject:
230 properties-content: |
231 BUILD_TYPE=staging
232 - shell: '{obj:post_build_script}'
233 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500234
235- job-template:
236 name: '{project-name}-{subproject}-{stream}-verify-helm'
237 # Job template for helm verify jobs
238
239 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500240
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500241 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500242 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700243 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500244 - shell: '{pre_build_script}'
245 - shell: '{build_script}'
246 - shell: '{post_build_script}'
247
248- job-template:
249 name: '{project-name}-{subproject}-{stream}-merge-helm'
250 # Job template for helm merge jobs
251
252 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500253
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500254 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500255 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700256 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500257 - shell: '{pre_build_script}'
258 - shell: '{build_script}'
259 - shell: '{post_build_script}'
260
261- job-template:
262 name: '{project-name}-{stream}-update-helm-weekly'
263 # Job template for weekly helm update jobs
264 #
265 # Required Variables:
266 # branch: git branch (eg. stable/lithium or master)
267 <<: *helm_job_boiler_plate
268
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500269 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500270 scm:
271 - lf-infra-gerrit-scm:
272 jenkins-ssh-credential: '{jenkins-ssh-credential}'
273 git-url: '$GIT_URL/$PROJECT'
274 refspec: '$GERRIT_REFSPEC'
275 branch: '$GERRIT_BRANCH'
276 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700277 submodule-timeout: '{submodule-timeout}'
Jessica Wagantall11a31f02019-05-13 12:28:14 -0700278 submodule-disable: '{submodule-disable}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500279 choosing-strategy: default
280
281 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700282 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500283 - shell: '{pre_build_script}'
284 - shell: '{build_script}'
285 - shell: '{post_build_script}'
286
287 triggers:
288 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700289 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500290 - gerrit-trigger-release-manually:
291 server: '{server-name}'
292 project: '{project}'
293 branch: '{branch}'
294