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 |
| 16 | pre_build_script: '' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 17 | build_script: '' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 18 | post_build_script: '' |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 19 | submodule-timeout: 10 |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 20 | |
| 21 | ##################### |
| 22 | # Job Configuration # |
| 23 | ##################### |
| 24 | |
| 25 | project-type: freestyle |
| 26 | node: '{build-node}' |
| 27 | |
| 28 | properties: |
| 29 | - lf-infra-properties: |
| 30 | build-days-to-keep: '{build-days-to-keep}' |
| 31 | |
| 32 | parameters: |
| 33 | - lf-infra-parameters: |
| 34 | branch: '{branch}' |
| 35 | project: '{project}' |
| 36 | stream: '{stream}' |
| 37 | lftools-version: '{lftools-version}' |
| 38 | |
| 39 | wrappers: |
| 40 | - lf-infra-wrappers: |
| 41 | build-timeout: '{build-timeout}' |
| 42 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 43 | |
| 44 | publishers: |
| 45 | - lf-infra-publish |
| 46 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 47 | ################# |
| 48 | # JOB TEMPLATES # |
| 49 | ################# |
| 50 | - job-template: |
| 51 | name: '{project-name}-{stream}-verify-helm' |
| 52 | # Job template for helm verify jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 53 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 54 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 55 | |
| 56 | scm: |
| 57 | - gerrit-trigger-scm: |
| 58 | refspec: '$GERRIT_REFSPEC' |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 59 | choosing-strategy: 'gerrit' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 60 | submodule-recursive: '{submodule-recursive}' |
| 61 | |
| 62 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 63 | - gerrit-trigger-helm-patch-submitted: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 64 | status-context: '{project}-Helm-Verify' |
| 65 | server: '{server-name}' |
| 66 | project: '{project}' |
| 67 | branch: '{branch}' |
| 68 | files: '{files}' |
| 69 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 70 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 71 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 72 | - shell: '{obj:pre_build_script}' |
| 73 | - shell: '{obj:build_script}' |
| 74 | |
| 75 | - job-template: |
| 76 | name: '{project-name}-{stream}-merge-helm' |
| 77 | # Job template for Helm merge jobs |
| 78 | |
| 79 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 80 | |
| 81 | scm: |
| 82 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 83 | refspec: '' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 84 | choosing-strategy: 'default' |
| 85 | submodule-recursive: '{submodule-recursive}' |
| 86 | |
| 87 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 88 | - gerrit-trigger-helm-patch-merged: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 89 | server: '{server-name}' |
| 90 | project: '{project}' |
| 91 | branch: '{branch}' |
| 92 | files: '{files}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 93 | |
| 94 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 95 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 96 | - lf-provide-maven-settings: |
| 97 | global-settings-file: '{mvn-global-settings}' |
| 98 | settings-file: '{mvn-settings}' |
| 99 | - shell: '{obj:pre_build_script}' |
| 100 | - shell: '{obj:build_script}' |
| 101 | - lf-infra-create-netrc: |
| 102 | server-id: oom-helm |
| 103 | - inject: |
| 104 | properties-content: | |
| 105 | BUILD_TYPE=snapshot |
| 106 | - shell: '{obj:post_build_script}' |
| 107 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 108 | |
| 109 | - job-template: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 110 | name: '{project-name}-{stream}-stage-helm' |
| 111 | # Job template for Helm stage jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 112 | |
| 113 | <<: *helm_job_boiler_plate |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 114 | |
| 115 | scm: |
| 116 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 117 | refspec: '' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 118 | choosing-strategy: 'default' |
| 119 | submodule-recursive: '{submodule-recursive}' |
| 120 | |
| 121 | triggers: |
| 122 | - pollscm: |
| 123 | cron: '0 22 * * *' |
| 124 | - gerrit: |
| 125 | trigger-on: |
| 126 | - comment-added-contains-event: |
| 127 | comment-contains-value: '^stage-helm$' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 128 | |
| 129 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 130 | - lf-infra-pre-build |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 131 | - lf-provide-maven-settings: |
| 132 | global-settings-file: '{mvn-global-settings}' |
| 133 | settings-file: '{mvn-settings}' |
| 134 | - shell: '{obj:pre_build_script}' |
| 135 | - shell: '{obj:build_script}' |
| 136 | - lf-infra-create-netrc: |
| 137 | server-id: oom-helm |
| 138 | - inject: |
| 139 | properties-content: | |
| 140 | BUILD_TYPE=staging |
| 141 | - shell: '{obj:post_build_script}' |
| 142 | - lf-provide-maven-settings-cleanup |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 143 | |
| 144 | - job-template: |
| 145 | name: '{project-name}-{subproject}-{stream}-verify-helm' |
| 146 | # Job template for helm verify jobs |
| 147 | |
| 148 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 149 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 150 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 151 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 152 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 153 | - shell: '{pre_build_script}' |
| 154 | - shell: '{build_script}' |
| 155 | - shell: '{post_build_script}' |
| 156 | |
| 157 | - job-template: |
| 158 | name: '{project-name}-{subproject}-{stream}-merge-helm' |
| 159 | # Job template for helm merge jobs |
| 160 | |
| 161 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 162 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 163 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 164 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 165 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 166 | - shell: '{pre_build_script}' |
| 167 | - shell: '{build_script}' |
| 168 | - shell: '{post_build_script}' |
| 169 | |
| 170 | - job-template: |
| 171 | name: '{project-name}-{stream}-update-helm-weekly' |
| 172 | # Job template for weekly helm update jobs |
| 173 | # |
| 174 | # Required Variables: |
| 175 | # branch: git branch (eg. stable/lithium or master) |
| 176 | <<: *helm_job_boiler_plate |
| 177 | |
Jeremy Phelps | 4eb85d7 | 2018-08-23 12:48:24 -0500 | [diff] [blame] | 178 | disabled: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 179 | scm: |
| 180 | - lf-infra-gerrit-scm: |
| 181 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 182 | git-url: '$GIT_URL/$PROJECT' |
| 183 | refspec: '$GERRIT_REFSPEC' |
| 184 | branch: '$GERRIT_BRANCH' |
| 185 | submodule-recursive: true |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 186 | submodule-timeout: '{submodule-timeout}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 187 | choosing-strategy: default |
| 188 | |
| 189 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 190 | - lf-infra-pre-build |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 191 | - shell: '{pre_build_script}' |
| 192 | - shell: '{build_script}' |
| 193 | - shell: '{post_build_script}' |
| 194 | |
| 195 | triggers: |
| 196 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 197 | - timed: '@daily' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 198 | - gerrit-trigger-release-manually: |
| 199 | server: '{server-name}' |
| 200 | project: '{project}' |
| 201 | branch: '{branch}' |
| 202 | |