Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 1 | --- |
| 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 Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 16 | build_script: '' |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 17 | git-url: '$GIT_URL/$PROJECT' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 18 | post_build_script: '' |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 19 | pre_build_script: '' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 20 | submodule-disable: false |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 21 | submodule-timeout: 10 |
Sylvain Desbureaux | 5657eda | 2020-11-26 10:25:39 +0100 | [diff] [blame] | 22 | build-timeout: 240 |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 23 | |
| 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 Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 50 | ################# |
| 51 | # JOB TEMPLATES # |
| 52 | ################# |
| 53 | - job-template: |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 54 | name: '{project-name}-{stream}-verify-{helm_bin}' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 55 | # Job template for helm verify jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 56 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 57 | <<: *helm_job_boiler_plate |
Jessica Wagantall | 039bb1b | 2020-03-10 11:42:52 -0700 | [diff] [blame] | 58 | concurrent: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 59 | |
| 60 | scm: |
| 61 | - gerrit-trigger-scm: |
| 62 | refspec: '$GERRIT_REFSPEC' |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 63 | choosing-strategy: 'gerrit' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 64 | submodule-recursive: '{submodule-recursive}' |
| 65 | |
| 66 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 67 | - gerrit-trigger-helm-patch-submitted: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 68 | status-context: '{project}-Helm-Verify' |
| 69 | server: '{server-name}' |
| 70 | project: '{project}' |
| 71 | branch: '{branch}' |
Sylvain Desbureaux | 0da65b9 | 2021-02-09 09:42:42 +0100 | [diff] [blame] | 72 | helm_bin: '{helm_bin}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 73 | files: '{files}' |
| 74 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 75 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 76 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 77 | - shell: | |
| 78 | echo "export HELM_BIN={helm_bin}" > helm.prop |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 79 | - shell: '{obj:pre_build_script}' |
| 80 | - shell: '{obj:build_script}' |
| 81 | |
| 82 | - job-template: |
| 83 | name: '{project-name}-{stream}-merge-helm' |
| 84 | # Job template for Helm merge jobs |
| 85 | |
| 86 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 87 | |
| 88 | scm: |
| 89 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 90 | refspec: '' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 91 | choosing-strategy: 'default' |
| 92 | submodule-recursive: '{submodule-recursive}' |
| 93 | |
| 94 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 95 | - gerrit-trigger-helm-patch-merged: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 96 | server: '{server-name}' |
| 97 | project: '{project}' |
| 98 | branch: '{branch}' |
| 99 | files: '{files}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 100 | |
| 101 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 102 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 103 | - lf-provide-maven-settings: |
| 104 | global-settings-file: '{mvn-global-settings}' |
| 105 | settings-file: '{mvn-settings}' |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 106 | - shell: | |
| 107 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 108 | - shell: '{obj:pre_build_script}' |
| 109 | - shell: '{obj:build_script}' |
| 110 | - lf-infra-create-netrc: |
| 111 | server-id: oom-helm |
| 112 | - inject: |
| 113 | properties-content: | |
| 114 | BUILD_TYPE=snapshot |
| 115 | - shell: '{obj:post_build_script}' |
| 116 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 117 | |
| 118 | - job-template: |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 119 | name: '{project-name}-{stream}-verify-external-helm' |
| 120 | # Job template for helm verify jobs |
| 121 | |
| 122 | <<: *helm_job_boiler_plate |
| 123 | |
| 124 | parameters: |
| 125 | - lf-infra-parameters: |
| 126 | branch: '{branch}' |
| 127 | project: 'oom' |
| 128 | stream: '{stream}' |
| 129 | lftools-version: '{lftools-version}' |
| 130 | |
| 131 | scm: |
| 132 | - lf-infra-gerrit-scm: |
| 133 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 134 | git-url: '{git-url}' |
| 135 | refspec: '$GERRIT_BRANCH' |
| 136 | branch: '$GERRIT_BRANCH' |
| 137 | submodule-recursive: '{submodule-recursive}' |
| 138 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 139 | submodule-disable: '{submodule-disable}' |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 140 | choosing-strategy: default |
| 141 | |
| 142 | triggers: |
| 143 | - gerrit-trigger-helm-patch-submitted: |
| 144 | status-context: '{project}-Helm-Verify' |
| 145 | server: '{server-name}' |
| 146 | project: '{project}' |
| 147 | branch: '{branch}' |
| 148 | files: '{files}' |
| 149 | |
| 150 | builders: |
| 151 | - lf-infra-pre-build |
| 152 | - inject: |
| 153 | properties-content: 'HELM_MODULE={helm-module}' |
| 154 | - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 155 | - shell: | |
| 156 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 157 | - shell: '{obj:pre_build_script}' |
| 158 | - shell: '{obj:build_script}' |
| 159 | |
| 160 | - job-template: |
Jessica Wagantall | 73d08bd | 2019-04-17 15:42:17 -0700 | [diff] [blame] | 161 | name: '{project-name}-{stream}-merge-external-helm' |
| 162 | # Job template for Helm merge jobs |
| 163 | |
| 164 | <<: *helm_job_boiler_plate |
| 165 | |
| 166 | parameters: |
| 167 | - lf-infra-parameters: |
| 168 | branch: '{branch}' |
| 169 | project: 'oom' |
| 170 | stream: '{stream}' |
| 171 | lftools-version: '{lftools-version}' |
| 172 | |
| 173 | scm: |
| 174 | - lf-infra-gerrit-scm: |
| 175 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 176 | git-url: '{git-url}' |
| 177 | refspec: '$GERRIT_BRANCH' |
| 178 | branch: '$GERRIT_BRANCH' |
| 179 | submodule-recursive: '{submodule-recursive}' |
| 180 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 181 | submodule-disable: '{submodule-disable}' |
Jessica Wagantall | 73d08bd | 2019-04-17 15:42:17 -0700 | [diff] [blame] | 182 | choosing-strategy: default |
| 183 | |
| 184 | triggers: |
| 185 | - gerrit-trigger-helm-patch-merged: |
| 186 | server: '{server-name}' |
| 187 | project: '{project}' |
| 188 | branch: '{branch}' |
| 189 | files: '{files}' |
| 190 | |
| 191 | builders: |
| 192 | - lf-infra-pre-build |
| 193 | - inject: |
| 194 | properties-content: 'HELM_MODULE={helm-module}' |
| 195 | - lf-provide-maven-settings: |
| 196 | global-settings-file: 'global-settings' |
| 197 | settings-file: '{mvn-settings}' |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 198 | - shell: | |
| 199 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jessica Wagantall | 73d08bd | 2019-04-17 15:42:17 -0700 | [diff] [blame] | 200 | - shell: '{obj:pre_build_script}' |
| 201 | - shell: '{obj:build_script}' |
| 202 | - lf-infra-create-netrc: |
| 203 | server-id: oom-helm |
| 204 | - inject: |
| 205 | properties-content: | |
| 206 | BUILD_TYPE=snapshot |
| 207 | - shell: '{obj:post_build_script}' |
| 208 | - lf-provide-maven-settings-cleanup |
| 209 | |
| 210 | - job-template: |
Jessica Wagantall | 019550b | 2020-12-21 12:24:30 -0800 | [diff] [blame] | 211 | name: '{project-name}-{stream}-release-helm' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 212 | # Job template for Helm stage jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 213 | |
| 214 | <<: *helm_job_boiler_plate |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 215 | |
| 216 | scm: |
| 217 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 218 | refspec: '' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 219 | choosing-strategy: 'default' |
| 220 | submodule-recursive: '{submodule-recursive}' |
| 221 | |
| 222 | triggers: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 223 | - gerrit: |
| 224 | trigger-on: |
| 225 | - comment-added-contains-event: |
Jessica Wagantall | 019550b | 2020-12-21 12:24:30 -0800 | [diff] [blame] | 226 | comment-contains-value: '^release-helm$' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 227 | |
| 228 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 229 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 230 | - lf-provide-maven-settings: |
| 231 | global-settings-file: '{mvn-global-settings}' |
| 232 | settings-file: '{mvn-settings}' |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 233 | - shell: | |
| 234 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 235 | - shell: '{obj:pre_build_script}' |
| 236 | - shell: '{obj:build_script}' |
| 237 | - lf-infra-create-netrc: |
| 238 | server-id: oom-helm |
| 239 | - inject: |
| 240 | properties-content: | |
Jessica Wagantall | 019550b | 2020-12-21 12:24:30 -0800 | [diff] [blame] | 241 | BUILD_TYPE=release |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 242 | - shell: '{obj:post_build_script}' |
| 243 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 244 | |
| 245 | - job-template: |
| 246 | name: '{project-name}-{subproject}-{stream}-verify-helm' |
| 247 | # Job template for helm verify jobs |
| 248 | |
| 249 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 250 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 251 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 252 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 253 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 254 | - shell: | |
| 255 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 256 | - shell: '{pre_build_script}' |
| 257 | - shell: '{build_script}' |
| 258 | - shell: '{post_build_script}' |
| 259 | |
| 260 | - job-template: |
| 261 | name: '{project-name}-{subproject}-{stream}-merge-helm' |
| 262 | # Job template for helm merge jobs |
| 263 | |
| 264 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 265 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 266 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 267 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 268 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 269 | - shell: | |
| 270 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 271 | - shell: '{pre_build_script}' |
| 272 | - shell: '{build_script}' |
| 273 | - shell: '{post_build_script}' |
| 274 | |
| 275 | - job-template: |
| 276 | name: '{project-name}-{stream}-update-helm-weekly' |
| 277 | # Job template for weekly helm update jobs |
| 278 | # |
| 279 | # Required Variables: |
| 280 | # branch: git branch (eg. stable/lithium or master) |
| 281 | <<: *helm_job_boiler_plate |
| 282 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 283 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 284 | scm: |
| 285 | - lf-infra-gerrit-scm: |
| 286 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 287 | git-url: '$GIT_URL/$PROJECT' |
| 288 | refspec: '$GERRIT_REFSPEC' |
| 289 | branch: '$GERRIT_BRANCH' |
| 290 | submodule-recursive: true |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 291 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 292 | submodule-disable: '{submodule-disable}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 293 | choosing-strategy: default |
| 294 | |
| 295 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 296 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 297 | - shell: | |
| 298 | echo "export HELM_BIN=helm3.5" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 299 | - shell: '{pre_build_script}' |
| 300 | - shell: '{build_script}' |
| 301 | - shell: '{post_build_script}' |
| 302 | |
| 303 | triggers: |
| 304 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 305 | - timed: '@daily' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 306 | - gerrit-trigger-release-manually: |
| 307 | server: '{server-name}' |
| 308 | project: '{project}' |
| 309 | branch: '{branch}' |