blob: 664d14ea36ddd426777e55d4a2c3c3785202a80c [file] [log] [blame]
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -05001---
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 Phelps3cffa432018-08-15 16:26:12 -050017 build_script: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050018 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 Phelps3cffa432018-08-15 16:26:12 -050046#################
47# JOB TEMPLATES #
48#################
49- job-template:
50 name: '{project-name}-{stream}-verify-helm'
51 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050052
Jeremy Phelps3cffa432018-08-15 16:26:12 -050053 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050054
55 scm:
56 - gerrit-trigger-scm:
57 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050058 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050059 submodule-recursive: '{submodule-recursive}'
60
61 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050062 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050063 status-context: '{project}-Helm-Verify'
64 server: '{server-name}'
65 project: '{project}'
66 branch: '{branch}'
67 files: '{files}'
68
Jeremy Phelps3cffa432018-08-15 16:26:12 -050069 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070070 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050071 - shell: '{obj:pre_build_script}'
72 - shell: '{obj:build_script}'
73
74- job-template:
75 name: '{project-name}-{stream}-merge-helm'
76 # Job template for Helm merge jobs
77
78 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050079
80 scm:
81 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050082 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050083 choosing-strategy: 'default'
84 submodule-recursive: '{submodule-recursive}'
85
86 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050087 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050088 server: '{server-name}'
89 project: '{project}'
90 branch: '{branch}'
91 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050092
93 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070094 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050095 - lf-provide-maven-settings:
96 global-settings-file: '{mvn-global-settings}'
97 settings-file: '{mvn-settings}'
98 - shell: '{obj:pre_build_script}'
99 - shell: '{obj:build_script}'
100 - lf-infra-create-netrc:
101 server-id: oom-helm
102 - inject:
103 properties-content: |
104 BUILD_TYPE=snapshot
105 - shell: '{obj:post_build_script}'
106 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500107
108- job-template:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500109 name: '{project-name}-{stream}-stage-helm'
110 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500111
112 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500113
114 scm:
115 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500116 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500117 choosing-strategy: 'default'
118 submodule-recursive: '{submodule-recursive}'
119
120 triggers:
121 - pollscm:
122 cron: '0 22 * * *'
123 - gerrit:
124 trigger-on:
125 - comment-added-contains-event:
126 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500127
128 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700129 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500130 - lf-provide-maven-settings:
131 global-settings-file: '{mvn-global-settings}'
132 settings-file: '{mvn-settings}'
133 - shell: '{obj:pre_build_script}'
134 - shell: '{obj:build_script}'
135 - lf-infra-create-netrc:
136 server-id: oom-helm
137 - inject:
138 properties-content: |
139 BUILD_TYPE=staging
140 - shell: '{obj:post_build_script}'
141 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500142
143- job-template:
144 name: '{project-name}-{subproject}-{stream}-verify-helm'
145 # Job template for helm verify jobs
146
147 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500148
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500149 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500150 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700151 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500152 - shell: '{pre_build_script}'
153 - shell: '{build_script}'
154 - shell: '{post_build_script}'
155
156- job-template:
157 name: '{project-name}-{subproject}-{stream}-merge-helm'
158 # Job template for helm merge jobs
159
160 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500161
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500162 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500163 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700164 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500165 - shell: '{pre_build_script}'
166 - shell: '{build_script}'
167 - shell: '{post_build_script}'
168
169- job-template:
170 name: '{project-name}-{stream}-update-helm-weekly'
171 # Job template for weekly helm update jobs
172 #
173 # Required Variables:
174 # branch: git branch (eg. stable/lithium or master)
175 <<: *helm_job_boiler_plate
176
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500177 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500178 scm:
179 - lf-infra-gerrit-scm:
180 jenkins-ssh-credential: '{jenkins-ssh-credential}'
181 git-url: '$GIT_URL/$PROJECT'
182 refspec: '$GERRIT_REFSPEC'
183 branch: '$GERRIT_BRANCH'
184 submodule-recursive: true
185 choosing-strategy: default
186
187 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700188 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500189 - shell: '{pre_build_script}'
190 - shell: '{build_script}'
191 - shell: '{post_build_script}'
192
193 triggers:
194 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700195 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500196 - gerrit-trigger-release-manually:
197 server: '{server-name}'
198 project: '{project}'
199 branch: '{branch}'
200