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 |
Eric Ball | e2b7d3c | 2020-10-08 11:33:05 -0700 | [diff] [blame] | 22 | build-timeout: 180 |
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: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 202 | name: '{project-name}-{stream}-stage-helm' |
| 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: |
| 214 | - pollscm: |
| 215 | cron: '0 22 * * *' |
| 216 | - gerrit: |
| 217 | trigger-on: |
| 218 | - comment-added-contains-event: |
| 219 | comment-contains-value: '^stage-helm$' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 220 | |
| 221 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 222 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 223 | - lf-provide-maven-settings: |
| 224 | global-settings-file: '{mvn-global-settings}' |
| 225 | settings-file: '{mvn-settings}' |
| 226 | - shell: '{obj:pre_build_script}' |
| 227 | - shell: '{obj:build_script}' |
| 228 | - lf-infra-create-netrc: |
| 229 | server-id: oom-helm |
| 230 | - inject: |
| 231 | properties-content: | |
| 232 | BUILD_TYPE=staging |
| 233 | - shell: '{obj:post_build_script}' |
| 234 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 235 | |
| 236 | - job-template: |
| 237 | name: '{project-name}-{subproject}-{stream}-verify-helm' |
| 238 | # Job template for helm verify jobs |
| 239 | |
| 240 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 241 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 242 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 243 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 244 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 245 | - shell: '{pre_build_script}' |
| 246 | - shell: '{build_script}' |
| 247 | - shell: '{post_build_script}' |
| 248 | |
| 249 | - job-template: |
| 250 | name: '{project-name}-{subproject}-{stream}-merge-helm' |
| 251 | # Job template for helm merge jobs |
| 252 | |
| 253 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 254 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 255 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 256 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 257 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 258 | - shell: '{pre_build_script}' |
| 259 | - shell: '{build_script}' |
| 260 | - shell: '{post_build_script}' |
| 261 | |
| 262 | - job-template: |
| 263 | name: '{project-name}-{stream}-update-helm-weekly' |
| 264 | # Job template for weekly helm update jobs |
| 265 | # |
| 266 | # Required Variables: |
| 267 | # branch: git branch (eg. stable/lithium or master) |
| 268 | <<: *helm_job_boiler_plate |
| 269 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 270 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 271 | scm: |
| 272 | - lf-infra-gerrit-scm: |
| 273 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 274 | git-url: '$GIT_URL/$PROJECT' |
| 275 | refspec: '$GERRIT_REFSPEC' |
| 276 | branch: '$GERRIT_BRANCH' |
| 277 | submodule-recursive: true |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 278 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 279 | submodule-disable: '{submodule-disable}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 280 | choosing-strategy: default |
| 281 | |
| 282 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 283 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 284 | - shell: '{pre_build_script}' |
| 285 | - shell: '{build_script}' |
| 286 | - shell: '{post_build_script}' |
| 287 | |
| 288 | triggers: |
| 289 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 290 | - timed: '@daily' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 291 | - gerrit-trigger-release-manually: |
| 292 | server: '{server-name}' |
| 293 | project: '{project}' |
| 294 | branch: '{branch}' |