blob: 6c139ddb8c3c1f504c658e6983a8df8f87a39fe9 [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: ''
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -070019 submodule-timeout: 10
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050020
21 #####################
22 # Job Configuration #
23 #####################
24
25 project-type: freestyle
26 node: '{build-node}'
27
28 properties:
29 - lf-infra-properties:
30 build-days-to-keep: '{build-days-to-keep}'
31
32 parameters:
33 - lf-infra-parameters:
34 branch: '{branch}'
35 project: '{project}'
36 stream: '{stream}'
37 lftools-version: '{lftools-version}'
38
39 wrappers:
40 - lf-infra-wrappers:
41 build-timeout: '{build-timeout}'
42 jenkins-ssh-credential: '{jenkins-ssh-credential}'
43
44 publishers:
45 - lf-infra-publish
46
Jeremy Phelps3cffa432018-08-15 16:26:12 -050047#################
48# JOB TEMPLATES #
49#################
50- job-template:
51 name: '{project-name}-{stream}-verify-helm'
52 # Job template for helm verify jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050053
Jeremy Phelps3cffa432018-08-15 16:26:12 -050054 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050055
56 scm:
57 - gerrit-trigger-scm:
58 refspec: '$GERRIT_REFSPEC'
Jeremy Phelpsb4961362018-08-29 17:29:40 -050059 choosing-strategy: 'gerrit'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050060 submodule-recursive: '{submodule-recursive}'
61
62 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050063 - gerrit-trigger-helm-patch-submitted:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050064 status-context: '{project}-Helm-Verify'
65 server: '{server-name}'
66 project: '{project}'
67 branch: '{branch}'
68 files: '{files}'
69
Jeremy Phelps3cffa432018-08-15 16:26:12 -050070 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070071 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050072 - shell: '{obj:pre_build_script}'
73 - shell: '{obj:build_script}'
74
75- job-template:
76 name: '{project-name}-{stream}-merge-helm'
77 # Job template for Helm merge jobs
78
79 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050080
81 scm:
82 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -050083 refspec: ''
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050084 choosing-strategy: 'default'
85 submodule-recursive: '{submodule-recursive}'
86
87 triggers:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -050088 - gerrit-trigger-helm-patch-merged:
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050089 server: '{server-name}'
90 project: '{project}'
91 branch: '{branch}'
92 files: '{files}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -050093
94 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070095 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -050096 - lf-provide-maven-settings:
97 global-settings-file: '{mvn-global-settings}'
98 settings-file: '{mvn-settings}'
99 - shell: '{obj:pre_build_script}'
100 - shell: '{obj:build_script}'
101 - lf-infra-create-netrc:
102 server-id: oom-helm
103 - inject:
104 properties-content: |
105 BUILD_TYPE=snapshot
106 - shell: '{obj:post_build_script}'
107 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500108
109- job-template:
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500110 name: '{project-name}-{stream}-stage-helm'
111 # Job template for Helm stage jobs
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500112
113 <<: *helm_job_boiler_plate
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500114
115 scm:
116 - gerrit-trigger-scm:
Jeremy Phelpsb4961362018-08-29 17:29:40 -0500117 refspec: ''
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500118 choosing-strategy: 'default'
119 submodule-recursive: '{submodule-recursive}'
120
121 triggers:
122 - pollscm:
123 cron: '0 22 * * *'
124 - gerrit:
125 trigger-on:
126 - comment-added-contains-event:
127 comment-contains-value: '^stage-helm$'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500128
129 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700130 - lf-infra-pre-build
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500131 - lf-provide-maven-settings:
132 global-settings-file: '{mvn-global-settings}'
133 settings-file: '{mvn-settings}'
134 - shell: '{obj:pre_build_script}'
135 - shell: '{obj:build_script}'
136 - lf-infra-create-netrc:
137 server-id: oom-helm
138 - inject:
139 properties-content: |
140 BUILD_TYPE=staging
141 - shell: '{obj:post_build_script}'
142 - lf-provide-maven-settings-cleanup
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500143
144- job-template:
145 name: '{project-name}-{subproject}-{stream}-verify-helm'
146 # Job template for helm verify jobs
147
148 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500149
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500150 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500151 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700152 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500153 - shell: '{pre_build_script}'
154 - shell: '{build_script}'
155 - shell: '{post_build_script}'
156
157- job-template:
158 name: '{project-name}-{subproject}-{stream}-merge-helm'
159 # Job template for helm merge jobs
160
161 <<: *helm_job_boiler_plate
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500162
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500163 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500164 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700165 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500166 - shell: '{pre_build_script}'
167 - shell: '{build_script}'
168 - shell: '{post_build_script}'
169
170- job-template:
171 name: '{project-name}-{stream}-update-helm-weekly'
172 # Job template for weekly helm update jobs
173 #
174 # Required Variables:
175 # branch: git branch (eg. stable/lithium or master)
176 <<: *helm_job_boiler_plate
177
Jeremy Phelps4eb85d72018-08-23 12:48:24 -0500178 disabled: true
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500179 scm:
180 - lf-infra-gerrit-scm:
181 jenkins-ssh-credential: '{jenkins-ssh-credential}'
182 git-url: '$GIT_URL/$PROJECT'
183 refspec: '$GERRIT_REFSPEC'
184 branch: '$GERRIT_BRANCH'
185 submodule-recursive: true
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -0700186 submodule-timeout: '{submodule-timeout}'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500187 choosing-strategy: default
188
189 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700190 - lf-infra-pre-build
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500191 - shell: '{pre_build_script}'
192 - shell: '{build_script}'
193 - shell: '{post_build_script}'
194
195 triggers:
196 # 11 AM UTC
Gary Wu5f4277f2018-09-28 10:36:23 -0700197 - timed: '@daily'
Jeremy Phelpsbca3dbb2018-05-24 12:50:26 -0500198 - gerrit-trigger-release-manually:
199 server: '{server-name}'
200 project: '{project}'
201 branch: '{branch}'
202