blob: 7b74b0eacd172cb2ec854f57c1a03256ff6b6c42 [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###########
23- helm_job_boiler_plate: &helm_job_boiler_plate
24 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
Jeremy Phelps3cffa432018-08-15 16:26:12 -050031 build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070032 git-url: '$GIT_URL/$PROJECT'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050033 post_build_script: ''
Jessica Wagantallabff9c02019-04-08 16:35:10 -070034 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
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}'
efiacor0d19d3b2022-12-01 14:52:39 +000054 - string:
55 name: HELM_BIN
56 default: '{helm_bin|helm3.8}'
57 - string:
58 name: BUILD_TYPE
59 default: '{build_type|snapshot}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050060
61 wrappers:
62 - lf-infra-wrappers:
63 build-timeout: '{build-timeout}'
64 jenkins-ssh-credential: '{jenkins-ssh-credential}'
65
efiacor0d19d3b2022-12-01 14:52:39 +000066 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 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:
Sylvain Desbureaux8a80b092021-02-17 13:49:17 +010085 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:
93 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050094 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050095 submodule-recursive: '{submodule-recursive}'
96
97 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050098 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050099 server: '{server-name}'
100 project: '{project}'
101 branch: '{branch}'
102 files: '{files}'
103
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500104- job-template:
105 name: '{project-name}-{stream}-merge-helm'
106 # 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:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500112 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500113 choosing-strategy: 'default'
114 submodule-recursive: '{submodule-recursive}'
115
116 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500117 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500118 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:
Jessica Wagantall019550b2020-12-21 12:24:30 -0800124 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:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500131 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500132 choosing-strategy: 'default'
133 submodule-recursive: '{submodule-recursive}'
134
135 triggers:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500136 - gerrit:
Eric Ballfde0bda2021-12-07 10:46:08 -0800137 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:
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 Phelpsbca3dbb2018-05-24 12:50:26 -0500150
efiacor0d19d3b2022-12-01 14:52:39 +0000151- 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 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
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500182 - shell: '{obj:pre_build_script}'
183 - shell: '{obj:build_script}'