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: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 118 | echo "export HELM_BIN=helm3.6" > 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: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 167 | echo "export HELM_BIN=helm3.6" > 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: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 210 | echo "export HELM_BIN=helm3.6" > 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}' |
Bengt Thuree | 459f061 | 2022-04-27 22:17:42 +1000 | [diff] [blame] | 213 | - oom-create-netrc: |
Jessica Wagantall | 73d08bd | 2019-04-17 15:42:17 -0700 | [diff] [blame] | 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: |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 235 | server-name: '{gerrit-server-name}' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 236 | trigger-on: |
| 237 | - comment-added-contains-event: |
Sylvain Desbureaux | 36dcc77 | 2021-06-17 22:21:44 +0200 | [diff] [blame] | 238 | comment-contains-value: '^Patch Set\s+\d+:\s+release-helm\s*$' |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 239 | projects: |
| 240 | - project-compare-type: 'ANT' |
| 241 | project-pattern: '{project}' |
| 242 | branches: |
| 243 | - branch-compare-type: 'ANT' |
| 244 | branch-pattern: '**/{branch}' |
| 245 | file-paths: |
| 246 | - compare-type: 'ANT' |
| 247 | pattern: '**' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 248 | |
| 249 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 250 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 251 | - lf-provide-maven-settings: |
| 252 | global-settings-file: '{mvn-global-settings}' |
| 253 | settings-file: '{mvn-settings}' |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 254 | - shell: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 255 | echo "export HELM_BIN=helm3.6" > helm.prop |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 256 | - shell: '{obj:pre_build_script}' |
| 257 | - shell: '{obj:build_script}' |
Bengt Thuree | 459f061 | 2022-04-27 22:17:42 +1000 | [diff] [blame] | 258 | - oom-create-netrc: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 259 | server-id: oom-helm |
| 260 | - inject: |
| 261 | properties-content: | |
Jessica Wagantall | 019550b | 2020-12-21 12:24:30 -0800 | [diff] [blame] | 262 | BUILD_TYPE=release |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 263 | - shell: '{obj:post_build_script}' |
| 264 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 265 | |
| 266 | - job-template: |
| 267 | name: '{project-name}-{subproject}-{stream}-verify-helm' |
| 268 | # Job template for helm verify jobs |
| 269 | |
| 270 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 271 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 272 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 273 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 274 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 275 | - shell: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 276 | echo "export HELM_BIN=helm3.6" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 277 | - shell: '{pre_build_script}' |
| 278 | - shell: '{build_script}' |
| 279 | - shell: '{post_build_script}' |
| 280 | |
| 281 | - job-template: |
| 282 | name: '{project-name}-{subproject}-{stream}-merge-helm' |
| 283 | # Job template for helm merge jobs |
| 284 | |
| 285 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 286 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 287 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 288 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 289 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 290 | - shell: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 291 | echo "export HELM_BIN=helm3.6" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 292 | - shell: '{pre_build_script}' |
| 293 | - shell: '{build_script}' |
Sylvain Desbureaux | 36dcc77 | 2021-06-17 22:21:44 +0200 | [diff] [blame] | 294 | - inject: |
| 295 | properties-content: | |
| 296 | BUILD_TYPE=snapshot |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 297 | - shell: '{post_build_script}' |
| 298 | |
| 299 | - job-template: |
| 300 | name: '{project-name}-{stream}-update-helm-weekly' |
| 301 | # Job template for weekly helm update jobs |
| 302 | # |
| 303 | # Required Variables: |
| 304 | # branch: git branch (eg. stable/lithium or master) |
| 305 | <<: *helm_job_boiler_plate |
| 306 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 307 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 308 | scm: |
| 309 | - lf-infra-gerrit-scm: |
| 310 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 311 | git-url: '$GIT_URL/$PROJECT' |
| 312 | refspec: '$GERRIT_REFSPEC' |
| 313 | branch: '$GERRIT_BRANCH' |
| 314 | submodule-recursive: true |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 315 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 316 | submodule-disable: '{submodule-disable}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 317 | choosing-strategy: default |
| 318 | |
| 319 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 320 | - lf-infra-pre-build |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 321 | - shell: | |
efiacor | cdb844e | 2022-04-28 12:54:56 +0100 | [diff] [blame] | 322 | echo "export HELM_BIN=helm3.6" > helm.prop |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 323 | - shell: '{pre_build_script}' |
| 324 | - shell: '{build_script}' |
| 325 | - shell: '{post_build_script}' |
| 326 | |
| 327 | triggers: |
| 328 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 329 | - timed: '@daily' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 330 | - gerrit-trigger-release-manually: |
| 331 | server: '{server-name}' |
| 332 | project: '{project}' |
| 333 | branch: '{branch}' |