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