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