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