blob: f1b015a5be4924cb0de62d49510674ebf7546e1f [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:
70 - shell: '{obj:pre_build_script}'
71 - shell: '{obj:build_script}'
72
73- job-template:
74 name: '{project-name}-{stream}-merge-helm'
75 # Job template for Helm merge jobs
76
77 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050078
79 scm:
80 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050081 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050082 choosing-strategy: 'default'
83 submodule-recursive: '{submodule-recursive}'
84
85 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050086 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050087 server: '{server-name}'
88 project: '{project}'
89 branch: '{branch}'
90 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050091
92 builders:
Jeremy Phelps3cffa432018-08-15 16:26:12 -050093 - lf-provide-maven-settings:
94 global-settings-file: '{mvn-global-settings}'
95 settings-file: '{mvn-settings}'
96 - shell: '{obj:pre_build_script}'
97 - shell: '{obj:build_script}'
98 - lf-infra-create-netrc:
99 server-id: oom-helm
100 - inject:
101 properties-content: |
102 BUILD_TYPE=snapshot
103 - shell: '{obj:post_build_script}'
104 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500105
106- job-template:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500107 name: '{project-name}-{stream}-stage-helm'
108 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500109
110 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500111
112 scm:
113 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500114 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500115 choosing-strategy: 'default'
116 submodule-recursive: '{submodule-recursive}'
117
118 triggers:
119 - pollscm:
120 cron: '0 22 * * *'
121 - gerrit:
122 trigger-on:
123 - comment-added-contains-event:
124 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500125
126 builders:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500127 - lf-provide-maven-settings:
128 global-settings-file: '{mvn-global-settings}'
129 settings-file: '{mvn-settings}'
130 - shell: '{obj:pre_build_script}'
131 - shell: '{obj:build_script}'
132 - lf-infra-create-netrc:
133 server-id: oom-helm
134 - inject:
135 properties-content: |
136 BUILD_TYPE=staging
137 - shell: '{obj:post_build_script}'
138 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500139
140- job-template:
141 name: '{project-name}-{subproject}-{stream}-verify-helm'
142 # Job template for helm verify jobs
143
144 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500145
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500146 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500147 builders:
148 - shell: '{pre_build_script}'
149 - shell: '{build_script}'
150 - shell: '{post_build_script}'
151
152- job-template:
153 name: '{project-name}-{subproject}-{stream}-merge-helm'
154 # Job template for helm merge jobs
155
156 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500157
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500158 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500159 builders:
160 - shell: '{pre_build_script}'
161 - shell: '{build_script}'
162 - shell: '{post_build_script}'
163
164- job-template:
165 name: '{project-name}-{stream}-update-helm-weekly'
166 # Job template for weekly helm update jobs
167 #
168 # Required Variables:
169 # branch: git branch (eg. stable/lithium or master)
170 <<: *helm_job_boiler_plate
171
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500172 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500173 scm:
174 - lf-infra-gerrit-scm:
175 jenkins-ssh-credential: '{jenkins-ssh-credential}'
176 git-url: '$GIT_URL/$PROJECT'
177 refspec: '$GERRIT_REFSPEC'
178 branch: '$GERRIT_BRANCH'
179 submodule-recursive: true
180 choosing-strategy: default
181
182 builders:
183 - shell: '{pre_build_script}'
184 - shell: '{build_script}'
185 - shell: '{post_build_script}'
186
187 triggers:
188 # 11 AM UTC
189 - timed: 'H 11 * * *'
190 - gerrit-trigger-release-manually:
191 server: '{server-name}'
192 project: '{project}'
193 branch: '{branch}'
194