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 | ########### |
Anil Belur | 7b3203a | 2023-04-14 21:54:49 +1000 | [diff] [blame] | 23 | - _helm_job_boiler_plate: &helm_job_boiler_plate |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 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 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 31 | build_script: "" |
| 32 | git-url: "$GIT_URL/$PROJECT" |
| 33 | post_build_script: "" |
| 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 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 42 | node: "{build-node}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 43 | |
| 44 | properties: |
| 45 | - lf-infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 46 | build-days-to-keep: "{build-days-to-keep}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 47 | |
| 48 | parameters: |
| 49 | - lf-infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 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 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 56 | default: "{helm_bin|helm3.8}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 57 | - string: |
| 58 | name: BUILD_TYPE |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 59 | default: "{build_type|snapshot}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 60 | |
| 61 | wrappers: |
| 62 | - lf-infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 63 | build-timeout: "{build-timeout}" |
| 64 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 65 | |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 66 | builders: |
| 67 | - lf-infra-pre-build |
| 68 | - lf-provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 69 | global-settings-file: "{mvn-global-settings}" |
| 70 | settings-file: "{mvn-settings}" |
| 71 | - shell: "{obj:pre_build_script}" |
| 72 | - shell: "{obj:build_script}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 73 | - oom-create-netrc: |
| 74 | server-id: oom-helm |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 75 | - shell: "{obj:post_build_script}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 93 | refspec: "$GERRIT_REFSPEC" |
| 94 | choosing-strategy: "gerrit" |
| 95 | submodule-recursive: "{submodule-recursive}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 96 | |
| 97 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 98 | - gerrit-trigger-helm-patch-submitted: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 99 | server: "{server-name}" |
| 100 | project: "{project}" |
| 101 | branch: "{branch}" |
| 102 | files: "{files}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 103 | |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 104 | - job-template: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 105 | name: "{project-name}-{stream}-merge-helm" |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 112 | refspec: "" |
| 113 | choosing-strategy: "default" |
| 114 | submodule-recursive: "{submodule-recursive}" |
Jeremy Phelps | bca3dbb | 2018-05-24 12:50:26 -0500 | [diff] [blame] | 115 | |
| 116 | triggers: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 117 | - gerrit-trigger-helm-patch-merged: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 131 | refspec: "" |
| 132 | choosing-strategy: "default" |
| 133 | submodule-recursive: "{submodule-recursive}" |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 134 | |
| 135 | triggers: |
Jeremy Phelps | 3cffa43 | 2018-08-15 16:26:12 -0500 | [diff] [blame] | 136 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 142 | - project-compare-type: "ANT" |
| 143 | project-pattern: "{project}" |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 144 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 145 | - branch-compare-type: "ANT" |
| 146 | branch-pattern: "**/{branch}" |
Eric Ball | fde0bda | 2021-12-07 10:46:08 -0800 | [diff] [blame] | 147 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 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: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 152 | name: "{project-name}-{stream}-verify-make-{helm_bin}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 153 | |
| 154 | <<: *helm_job_boiler_plate |
| 155 | |
| 156 | scm: |
| 157 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 158 | refspec: "" |
| 159 | choosing-strategy: "default" |
| 160 | submodule-recursive: "{submodule-recursive}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 161 | |
| 162 | triggers: |
| 163 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 164 | server-name: "{gerrit-server-name}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 165 | trigger-on: |
| 166 | - comment-added-contains-event: |
| 167 | comment-contains-value: '^Patch Set\s+\d+:\s+helm-latest\s*$' |
| 168 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 169 | - project-compare-type: "ANT" |
| 170 | project-pattern: "{project}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 171 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 172 | - branch-compare-type: "ANT" |
| 173 | branch-pattern: "**/{branch}" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 174 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 175 | - compare-type: "ANT" |
| 176 | pattern: "**" |
efiacor | 0d19d3b | 2022-12-01 14:52:39 +0000 | [diff] [blame] | 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 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 182 | - shell: "{obj:pre_build_script}" |
| 183 | - shell: "{obj:build_script}" |