blob: d7cc056e5da9a769b5dafd219d9fa74eef8fd927 [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
16 pre_build_script: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -050017 build_script: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050018 post_build_script: ''
19
20 #####################
21 # Job Configuration #
22 #####################
23
24 project-type: freestyle
25 node: '{build-node}'
26
27 properties:
28 - lf-infra-properties:
29 build-days-to-keep: '{build-days-to-keep}'
30
31 parameters:
32 - lf-infra-parameters:
33 branch: '{branch}'
34 project: '{project}'
35 stream: '{stream}'
36 lftools-version: '{lftools-version}'
37
38 wrappers:
39 - lf-infra-wrappers:
40 build-timeout: '{build-timeout}'
41 jenkins-ssh-credential: '{jenkins-ssh-credential}'
42
43 publishers:
44 - lf-infra-publish
45
Jeremy Phelps3cffa432018-08-15 16:26:12 -050046#################
47# JOB TEMPLATES #
48#################
49- job-template:
50 name: '{project-name}-{stream}-verify-helm'
51 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050052
Jeremy Phelps3cffa432018-08-15 16:26:12 -050053 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050054
55 scm:
56 - gerrit-trigger-scm:
57 refspec: '$GERRIT_REFSPEC'
58 choosing-strategy: 'default'
59 submodule-recursive: '{submodule-recursive}'
60
61 triggers:
62 - gerrit-trigger-patch-submitted:
63 status-context: '{project}-Helm-Verify'
64 server: '{server-name}'
65 project: '{project}'
66 branch: '{branch}'
67 files: '{files}'
Jeremy Phelps3cffa432018-08-15 16:26:12 -050068 - gerrit:
69 trigger-on:
70 - comment-added-contains-event:
71 comment-contains-value: '^verify-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050072
Jeremy Phelps3cffa432018-08-15 16:26:12 -050073 builders:
74 - shell: '{obj:pre_build_script}'
75 - shell: '{obj:build_script}'
76
77- job-template:
78 name: '{project-name}-{stream}-merge-helm'
79 # Job template for Helm merge jobs
80
81 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050082
83 scm:
84 - gerrit-trigger-scm:
85 refspec: '$GERRIT_REFSPEC'
86 choosing-strategy: 'default'
87 submodule-recursive: '{submodule-recursive}'
88
89 triggers:
90 - gerrit-trigger-patch-merged:
91 server: '{server-name}'
92 project: '{project}'
93 branch: '{branch}'
94 files: '{files}'
95 - pollscm:
96 cron: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -050097 - gerrit:
98 trigger-on:
99 - comment-added-contains-event:
100 comment-contains-value: '^remerge-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500101
102 builders:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500103 - lf-provide-maven-settings:
104 global-settings-file: '{mvn-global-settings}'
105 settings-file: '{mvn-settings}'
106 - shell: '{obj:pre_build_script}'
107 - shell: '{obj:build_script}'
108 - lf-infra-create-netrc:
109 server-id: oom-helm
110 - inject:
111 properties-content: |
112 BUILD_TYPE=snapshot
113 - shell: '{obj:post_build_script}'
114 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500115
116- job-template:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500117 name: '{project-name}-{stream}-stage-helm'
118 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500119
120 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500121
122 scm:
123 - gerrit-trigger-scm:
124 refspec: '$GERRIT_REFSPEC'
125 choosing-strategy: 'default'
126 submodule-recursive: '{submodule-recursive}'
127
128 triggers:
129 - pollscm:
130 cron: '0 22 * * *'
131 - gerrit:
132 trigger-on:
133 - comment-added-contains-event:
134 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500135
136 builders:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500137 - lf-provide-maven-settings:
138 global-settings-file: '{mvn-global-settings}'
139 settings-file: '{mvn-settings}'
140 - shell: '{obj:pre_build_script}'
141 - shell: '{obj:build_script}'
142 - lf-infra-create-netrc:
143 server-id: oom-helm
144 - inject:
145 properties-content: |
146 BUILD_TYPE=staging
147 - shell: '{obj:post_build_script}'
148 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500149
150- job-template:
151 name: '{project-name}-{subproject}-{stream}-verify-helm'
152 # Job template for helm verify jobs
153
154 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500155
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500156 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500157 builders:
158 - shell: '{pre_build_script}'
159 - shell: '{build_script}'
160 - shell: '{post_build_script}'
161
162- job-template:
163 name: '{project-name}-{subproject}-{stream}-merge-helm'
164 # Job template for helm merge jobs
165
166 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500167
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500168 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500169 builders:
170 - shell: '{pre_build_script}'
171 - shell: '{build_script}'
172 - shell: '{post_build_script}'
173
174- job-template:
175 name: '{project-name}-{stream}-update-helm-weekly'
176 # Job template for weekly helm update jobs
177 #
178 # Required Variables:
179 # branch: git branch (eg. stable/lithium or master)
180 <<: *helm_job_boiler_plate
181
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500182 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500183 scm:
184 - lf-infra-gerrit-scm:
185 jenkins-ssh-credential: '{jenkins-ssh-credential}'
186 git-url: '$GIT_URL/$PROJECT'
187 refspec: '$GERRIT_REFSPEC'
188 branch: '$GERRIT_BRANCH'
189 submodule-recursive: true
190 choosing-strategy: default
191
192 builders:
193 - shell: '{pre_build_script}'
194 - shell: '{build_script}'
195 - shell: '{post_build_script}'
196
197 triggers:
198 # 11 AM UTC
199 - timed: 'H 11 * * *'
200 - gerrit-trigger-release-manually:
201 server: '{server-name}'
202 project: '{project}'
203 branch: '{branch}'
204