Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 1 | --- |
Jessica Wagantall | 48a6b4c | 2021-08-02 20:19:36 -0700 | [diff] [blame] | 2 | ############ |
| 3 | # BUILDERS # |
| 4 | ############ |
| 5 | |
| 6 | - builder: |
| 7 | name: oom-create-netrc |
| 8 | builders: |
| 9 | - inject: |
| 10 | properties-content: "SERVER_ID={server-id}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 11 | - shell: !include-raw-escape: ../shell/helm/oom-create-netrc.sh |
| 12 | |
| 13 | - builder: |
| 14 | name: helm-install |
| 15 | builders: |
| 16 | - inject: |
| 17 | properties-content: "HELM_VER={helm_ver}" |
| 18 | - shell: !include-raw-escape: ../shell/helm/helm-install.sh |
Jessica Wagantall | 48a6b4c | 2021-08-02 20:19:36 -0700 | [diff] [blame] | 19 | |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 20 | ########### |
| 21 | # ANCHORS # |
| 22 | ########### |
| 23 | - helm_job_boiler_plate: &helm_job_boiler_plate |
| 24 | name: helm_job_boiler_plate |
| 25 | |
| 26 | ###################### |
| 27 | # Default parameters # |
| 28 | ###################### |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 29 | branch: master |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 30 | # default params for helm jobs |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 31 | build_script: '' |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 32 | git-url: '$GIT_URL/$PROJECT' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 33 | post_build_script: '' |
Jessica Wagantall | abff9c0 | 2019-04-08 16:35:10 -0700 | [diff] [blame] | 34 | pre_build_script: '' |
Sylvain Desbureaux | 5657eda | 2020-11-26 10:25:39 +0100 | [diff] [blame] | 35 | build-timeout: 240 |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 36 | |
| 37 | ##################### |
| 38 | # Job Configuration # |
| 39 | ##################### |
| 40 | |
| 41 | project-type: freestyle |
| 42 | node: '{build-node}' |
| 43 | |
| 44 | properties: |
| 45 | - lf-infra-properties: |
| 46 | build-days-to-keep: '{build-days-to-keep}' |
| 47 | |
| 48 | parameters: |
| 49 | - lf-infra-parameters: |
| 50 | branch: '{branch}' |
| 51 | project: '{project}' |
| 52 | stream: '{stream}' |
| 53 | lftools-version: '{lftools-version}' |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 54 | - string: |
| 55 | name: HELM_BIN |
| 56 | default: '{helm_bin|helm3.8}' |
| 57 | - string: |
| 58 | name: BUILD_TYPE |
| 59 | default: '{build_type|snapshot}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 60 | |
| 61 | wrappers: |
| 62 | - lf-infra-wrappers: |
| 63 | build-timeout: '{build-timeout}' |
| 64 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 65 | |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 66 | builders: |
| 67 | - lf-infra-pre-build |
| 68 | - lf-provide-maven-settings: |
| 69 | global-settings-file: '{mvn-global-settings}' |
| 70 | settings-file: '{mvn-settings}' |
| 71 | - shell: '{obj:pre_build_script}' |
| 72 | - shell: '{obj:build_script}' |
| 73 | - oom-create-netrc: |
| 74 | server-id: oom-helm |
| 75 | - shell: '{obj:post_build_script}' |
| 76 | - lf-provide-maven-settings-cleanup |
| 77 | |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 78 | publishers: |
| 79 | - lf-infra-publish |
| 80 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 81 | ################# |
| 82 | # JOB TEMPLATES # |
| 83 | ################# |
| 84 | - job-template: |
Sylvain Desbureaux | 8a80b09 | 2021-02-17 13:49:17 +0100 | [diff] [blame] | 85 | name: '{project-name}-{stream}-verify-{helm_bin}' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 86 | # Job template for helm verify jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 87 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 88 | <<: *helm_job_boiler_plate |
Jessica Wagantall | 039bb1b | 2020-03-10 11:42:52 -0700 | [diff] [blame] | 89 | concurrent: true |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 90 | |
| 91 | scm: |
| 92 | - gerrit-trigger-scm: |
| 93 | refspec: '$GERRIT_REFSPEC' |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 94 | choosing-strategy: 'gerrit' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 95 | submodule-recursive: '{submodule-recursive}' |
| 96 | |
| 97 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 98 | - gerrit-trigger-helm-patch-submitted: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 99 | server: '{server-name}' |
| 100 | project: '{project}' |
| 101 | branch: '{branch}' |
| 102 | files: '{files}' |
| 103 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 104 | - job-template: |
| 105 | name: '{project-name}-{stream}-merge-helm' |
| 106 | # Job template for Helm merge jobs |
| 107 | |
| 108 | <<: *helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 109 | |
| 110 | scm: |
| 111 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 112 | refspec: '' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 113 | choosing-strategy: 'default' |
| 114 | submodule-recursive: '{submodule-recursive}' |
| 115 | |
| 116 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 117 | - gerrit-trigger-helm-patch-merged: |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 118 | server: '{server-name}' |
| 119 | project: '{project}' |
| 120 | branch: '{branch}' |
| 121 | files: '{files}' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 122 | |
Jessica Wagantall | 73d08bd | 2019-04-17 15:42:17 -0700 | [diff] [blame] | 123 | - job-template: |
Jessica Wagantall | 019550b | 2020-12-21 12:24:30 -0800 | [diff] [blame] | 124 | name: '{project-name}-{stream}-release-helm' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 125 | # Job template for Helm stage jobs |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 126 | |
| 127 | <<: *helm_job_boiler_plate |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 128 | |
| 129 | scm: |
| 130 | - gerrit-trigger-scm: |
Jeremy Phelps | b496136 | 2018-08-29 17:29:40 -0500 | [diff] [blame] | 131 | refspec: '' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 132 | choosing-strategy: 'default' |
| 133 | submodule-recursive: '{submodule-recursive}' |
| 134 | |
| 135 | triggers: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 136 | - gerrit: |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 137 | server-name: '{gerrit-server-name}' |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 138 | trigger-on: |
| 139 | - comment-added-contains-event: |
Sylvain Desbureaux | 36dcc77 | 2021-06-17 22:21:44 +0200 | [diff] [blame] | 140 | comment-contains-value: '^Patch Set\s+\d+:\s+release-helm\s*$' |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 141 | projects: |
| 142 | - project-compare-type: 'ANT' |
| 143 | project-pattern: '{project}' |
| 144 | branches: |
| 145 | - branch-compare-type: 'ANT' |
| 146 | branch-pattern: '**/{branch}' |
| 147 | file-paths: |
| 148 | - compare-type: 'ANT' |
| 149 | pattern: '**' |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 150 | |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 151 | - job-template: |
| 152 | name: '{project-name}-{stream}-verify-make-{helm_bin}' |
| 153 | |
| 154 | <<: *helm_job_boiler_plate |
| 155 | |
| 156 | scm: |
| 157 | - gerrit-trigger-scm: |
| 158 | refspec: '' |
| 159 | choosing-strategy: 'default' |
| 160 | submodule-recursive: '{submodule-recursive}' |
| 161 | |
| 162 | triggers: |
| 163 | - gerrit: |
| 164 | server-name: '{gerrit-server-name}' |
| 165 | trigger-on: |
| 166 | - comment-added-contains-event: |
| 167 | comment-contains-value: '^Patch Set\s+\d+:\s+helm-latest\s*$' |
| 168 | projects: |
| 169 | - project-compare-type: 'ANT' |
| 170 | project-pattern: '{project}' |
| 171 | branches: |
| 172 | - branch-compare-type: 'ANT' |
| 173 | branch-pattern: '**/{branch}' |
| 174 | file-paths: |
| 175 | - compare-type: 'ANT' |
| 176 | pattern: '**' |
| 177 | |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 178 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 179 | - lf-infra-pre-build |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 180 | - helm-install: |
| 181 | helm_ver: 3.10.2 |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 182 | - shell: '{obj:pre_build_script}' |
| 183 | - shell: '{obj:build_script}' |