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