blob: ccf19b5079e3d24deffe0cd67696b2900d8339dd [file] [log] [blame]
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -05001---
Jessica Wagantall48a6b4c2021-08-02 20:19:36 -07002############
3# BUILDERS #
4############
5
6- builder:
7 name: oom-create-netrc
8 builders:
9 - inject:
10 properties-content: "SERVER_ID={server-id}"
efiacor0d19d3b2022-12-01 14:52:39 +000011 - 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 Wagantall48a6b4c2021-08-02 20:19:36 -070019
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050020###########
21# ANCHORS #
22###########
Anil Belur7b3203a2023-04-14 21:54:49 +100023- _helm_job_boiler_plate: &helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050024 name: helm_job_boiler_plate
25
26 ######################
27 # Default parameters #
28 ######################
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050029 branch: master
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050030 # default params for helm jobs
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070031 build_script: ""
32 git-url: "$GIT_URL/$PROJECT"
33 post_build_script: ""
34 pre_build_script: ""
Sylvain Desbureaux5657eda2020-11-26 10:25:39 +010035 build-timeout: 240
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050036
37 #####################
38 # Job Configuration #
39 #####################
40
41 project-type: freestyle
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070042 node: "{build-node}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050043
44 properties:
45 - lf-infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070046 build-days-to-keep: "{build-days-to-keep}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050047
48 parameters:
49 - lf-infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070050 branch: "{branch}"
51 project: "{project}"
52 stream: "{stream}"
53 lftools-version: "{lftools-version}"
efiacor0d19d3b2022-12-01 14:52:39 +000054 - string:
55 name: HELM_BIN
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070056 default: "{helm_bin|helm3.8}"
efiacor0d19d3b2022-12-01 14:52:39 +000057 - string:
58 name: BUILD_TYPE
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070059 default: "{build_type|snapshot}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050060
61 wrappers:
62 - lf-infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070063 build-timeout: "{build-timeout}"
64 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050065
efiacor0d19d3b2022-12-01 14:52:39 +000066 builders:
67 - lf-infra-pre-build
68 - lf-provide-maven-settings:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070069 global-settings-file: "{mvn-global-settings}"
70 settings-file: "{mvn-settings}"
71 - shell: "{obj:pre_build_script}"
72 - shell: "{obj:build_script}"
efiacor0d19d3b2022-12-01 14:52:39 +000073 - oom-create-netrc:
74 server-id: oom-helm
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070075 - shell: "{obj:post_build_script}"
efiacor0d19d3b2022-12-01 14:52:39 +000076 - lf-provide-maven-settings-cleanup
77
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050078 publishers:
79 - lf-infra-publish
80
Jeremy Phelps3cffa432018-08-15 16:26:12 -050081#################
82# JOB TEMPLATES #
83#################
84- job-template:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070085 name: "{project-name}-{stream}-verify-{helm_bin}"
Jeremy Phelps3cffa432018-08-15 16:26:12 -050086 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050087
Jeremy Phelps3cffa432018-08-15 16:26:12 -050088 <<: *helm_job_boiler_plate
Jessica Wagantall039bb1b2020-03-10 11:42:52 -070089 concurrent: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050090
91 scm:
92 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070093 refspec: "$GERRIT_REFSPEC"
94 choosing-strategy: "gerrit"
95 submodule-recursive: "{submodule-recursive}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050096
97 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050098 - gerrit-trigger-helm-patch-submitted:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070099 server: "{server-name}"
100 project: "{project}"
101 branch: "{branch}"
102 files: "{files}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500103
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500104- job-template:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700105 name: "{project-name}-{stream}-merge-helm"
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500106 # Job template for Helm merge jobs
107
108 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500109
110 scm:
111 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700112 refspec: ""
113 choosing-strategy: "default"
114 submodule-recursive: "{submodule-recursive}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500115
116 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500117 - gerrit-trigger-helm-patch-merged:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700118 server: "{server-name}"
119 project: "{project}"
120 branch: "{branch}"
121 files: "{files}"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500122
Jessica Wagantall73d08bd2019-04-17 15:42:17 -0700123- job-template:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700124 name: "{project-name}-{stream}-release-helm"
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500125 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500126
127 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500128
129 scm:
130 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700131 refspec: ""
132 choosing-strategy: "default"
133 submodule-recursive: "{submodule-recursive}"
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500134
135 triggers:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500136 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700137 server-name: "{gerrit-server-name}"
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500138 trigger-on:
139 - comment-added-contains-event:
Sylvain Desbureaux36dcc772021-06-17 22:21:44 +0200140 comment-contains-value: '^Patch Set\s+\d+:\s+release-helm\s*$'
Eric Ballfde0bda2021-12-07 10:46:08 -0800141 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700142 - project-compare-type: "ANT"
143 project-pattern: "{project}"
Eric Ballfde0bda2021-12-07 10:46:08 -0800144 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700145 - branch-compare-type: "ANT"
146 branch-pattern: "**/{branch}"
Eric Ballfde0bda2021-12-07 10:46:08 -0800147 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700148 - compare-type: "ANT"
149 pattern: "**"
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500150
efiacor0d19d3b2022-12-01 14:52:39 +0000151- job-template:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700152 name: "{project-name}-{stream}-verify-make-{helm_bin}"
efiacor0d19d3b2022-12-01 14:52:39 +0000153
154 <<: *helm_job_boiler_plate
155
156 scm:
157 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700158 refspec: ""
159 choosing-strategy: "default"
160 submodule-recursive: "{submodule-recursive}"
efiacor0d19d3b2022-12-01 14:52:39 +0000161
162 triggers:
163 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700164 server-name: "{gerrit-server-name}"
efiacor0d19d3b2022-12-01 14:52:39 +0000165 trigger-on:
166 - comment-added-contains-event:
167 comment-contains-value: '^Patch Set\s+\d+:\s+helm-latest\s*$'
168 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700169 - project-compare-type: "ANT"
170 project-pattern: "{project}"
efiacor0d19d3b2022-12-01 14:52:39 +0000171 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700172 - branch-compare-type: "ANT"
173 branch-pattern: "**/{branch}"
efiacor0d19d3b2022-12-01 14:52:39 +0000174 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700175 - compare-type: "ANT"
176 pattern: "**"
efiacor0d19d3b2022-12-01 14:52:39 +0000177
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500178 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700179 - lf-infra-pre-build
efiacor0d19d3b2022-12-01 14:52:39 +0000180 - helm-install:
181 helm_ver: 3.10.2
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700182 - shell: "{obj:pre_build_script}"
183 - shell: "{obj:build_script}"