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