blob: fcbf745fcd2819b5a0ce075d636a6f88a5ef402c [file] [log] [blame]
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -08001---
2# vim: sw=2 ts=2 sts=2 et :
3
lj1412f75ed992017-02-17 22:21:06 +00004- job-template:
lj1412d0704842017-02-18 21:46:11 +00005 # Job template for merging a submission. triggered on
6 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
7 # run script
lj1412f75ed992017-02-17 22:21:06 +00008 # Required Variables:
9 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000010 # script: build script to execute
11 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000012 # mvn-goals: space separated list of maven build goals (--version
13 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000014 name: '{project-name}-{stream}-merge-scm-mvn-script'
15
16 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000017 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000018
19 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070020 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000021 build-days-to-keep: '{build-days-to-keep}'
22
23 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000025 project: '{project}'
26 branch: '{branch}'
27 refspec: 'refs/heads/{branch}'
28 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080029 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080030 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000031
32 scm:
33 - gerrit-trigger-scm:
34 refspec: ''
35 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050036 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +000037
38 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070039 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +000040 build-timeout: '{build-timeout}'
41
42 triggers:
43 - gerrit-trigger-patch-merged:
44 server: '{server-name}'
45 project: '{project}'
46 branch: '{branch}'
47 files: '**'
48
49 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070050 - lf-infra-pre-build
lj1412f75ed992017-02-17 22:21:06 +000051 - provide-maven-settings:
52 global-settings-file: 'global-settings'
53 settings-file: '{mvn-settings}'
54 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080055 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000056 goals: '{mvn-goals}'
57 settings: '{mvn-settings}'
58 settings-type: cfp
59 global-settings: 'global-settings'
60 global-settings-type: cfp
61 - docker-login
62 - shell: '{script}'
63
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070064 publishers:
65 - infra-shiplogs:
66 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000067
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080068
69- job-template:
70 # Job template for 2 scm and script trigger
71 #
72 # Required Variables:
73 # branch: git branch
74 # build-node: what build node to run on
75 # script: build script to execute
76 # extra-project: extra gerrit project to checkout
77 # extra-refspec: refspec for the extra project
78 # extra-branch: branch to checkout for the extra project
79 # checkout-dir: directory to checkout the extra project to
80 # DO NOT SET THIS TO anything that translates to
81 # $WORKSPACE as it will destroy the initial
82 # project checkout
83
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080084 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080085
86 project-type: freestyle
87 concurrent: true
88 node: '{build-node}'
89
90 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070091 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080092 build-days-to-keep: '{build-days-to-keep}'
93
94 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070095 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080096 project: '{project}'
97 branch: '{branch}'
98 refspec: 'refs/heads/{branch}'
99 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800100 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800101 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800102
103 scm:
104 - gerrit-trigger-scm:
105 refspec: '$GERRIT_REFSPEC'
106 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500107 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800108 - git-extra-project:
109 project: '{extra-project}'
110 refspec: '{extra-refspec}'
111 branch: '{extra-branch}'
112 checkout-dir: '{checkout-dir}'
113
114 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700115 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800116 build-timeout: '{build-timeout}'
117
118 triggers:
119 - gerrit-trigger-patch-submitted:
120 server: '{server-name}'
121 project: '{project}'
122 branch: '{branch}'
123 files: '**'
124
125 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700126 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800127 - provide-maven-settings:
128 global-settings-file: 'global-settings'
129 settings-file: '{mvn-settings}'
130 # make sure maven gets installed / setup
131 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800132 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800133 goals: '--version'
134 settings: '{mvn-settings}'
135 settings-type: cfp
136 global-settings: 'global-settings'
137 global-settings-type: cfp
138 - shell: '{script}'
139
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700140 publishers:
141 - infra-shiplogs:
142 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500143
144
talasila714fdfa2017-02-19 09:30:55 -0500145
146# vim: sw=2 ts=2 sts=2 et :
147
148- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400149 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500150 #
151 # Required Variables:
152 # branch: git branch
153 # build-node: what build node to run on
154 # script: build script to execute
155
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400156 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500157
158 project-type: freestyle
159 concurrent: true
160 node: '{build-node}'
161
162 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700163 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500164 build-days-to-keep: '{build-days-to-keep}'
165
166 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700167 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500168 project: '{project}'
169 branch: '{branch}'
170 refspec: 'refs/heads/{branch}'
171 artifacts: '{archive-artifacts}'
172 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800173 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500174
175 scm:
176 - gerrit-trigger-scm:
177 refspec: ''
178 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500179 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500180 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400181 project: '{extra-project}'
182 refspec: '{extra-refspec}'
183 branch: '{extra-branch}'
184 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500185
186 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700187 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500188 build-timeout: '{build-timeout}'
189
190 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500191 - gerrit-trigger-patch-merged:
192 server: '{server-name}'
193 project: '{project}'
194 branch: '{branch}'
195 files: '**'
196
197 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700198 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500199 - provide-maven-settings:
200 global-settings-file: 'global-settings'
201 settings-file: '{mvn-settings}'
202 - docker-login
203 # make sure maven gets installed / setup
204 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800205 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500206 goals: '--version'
207 settings: '{mvn-settings}'
208 settings-type: cfp
209 global-settings: 'global-settings'
210 global-settings-type: cfp
211 - shell: '{script}'
212
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700213 publishers:
214 - infra-shiplogs:
215 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500216
217- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400218 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500219 #
220 # Required Variables:
221 # branch: git branch
222 # build-node: what build node to run on
223 # script: build script to execute
224
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400225 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500226
227 project-type: freestyle
228 concurrent: true
229 node: '{build-node}'
230
231 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700232 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500233 build-days-to-keep: '{build-days-to-keep}'
234
235 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700236 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500237 project: '{project}'
238 branch: '{branch}'
239 refspec: 'refs/heads/{branch}'
240 artifacts: '{archive-artifacts}'
241 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800242 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500243
244 scm:
245 - gerrit-trigger-scm:
246 refspec: ''
247 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500248 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500249 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400250 project: '{extra-project}'
251 refspec: '{extra-refspec}'
252 branch: '{extra-branch}'
253 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500254
255 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700256 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500257 build-timeout: '{build-timeout}'
258
259 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500260 - gerrit-trigger-release-manually:
261 server: '{server-name}'
262 project: '{project}'
263 branch: '{branch}'
264
265 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700266 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500267 - provide-maven-settings:
268 global-settings-file: 'global-settings'
269 settings-file: '{mvn-settings}'
270 - docker-login
271 # make sure maven gets installed / setup
272 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800273 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500274 goals: '--version'
275 settings: '{mvn-settings}'
276 settings-type: cfp
277 global-settings: 'global-settings'
278 global-settings-type: cfp
279 - shell: '{script}'
280
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700281 publishers:
282 - infra-shiplogs:
283 maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800284
285- job-template:
286 # 1. PULL the desired image
287 # 2. TAG it to the desired release name
288 # 3. PUSH the newly tagged image on release repo
289
290 name: '{project-name}-docker-image-blessing'
291
292 project-type: freestyle
293 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500294 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800295
296 parameters:
297 - string:
JulienBed45ff952017-03-28 02:54:51 -0700298 name: X
299 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
300 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800301 - string:
JulienBed45ff952017-03-28 02:54:51 -0700302 name: Y
303 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
304 Example : 2"
305 - string:
306 name: Z
307 description: "z VERSION of the RELEASE VERSION
308 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800309 - string:
310 name: PROJECT
311 default: '{project}'
312
313 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700314 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800315 build-days-to-keep: '{build-days-to-keep}'
316
317 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700318 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800319 build-timeout: '{build-timeout}'
320
321 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700322 - lf-infra-pre-build
JulienBea247e9f2017-03-08 13:07:21 -0800323 - provide-maven-settings:
324 global-settings-file: 'global-settings'
325 settings-file: '{mvn-settings}'
326 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500327 - shell: !include-raw: include-docker-blessing.sh
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700328
329 publishers:
330 - infra-shiplogs:
331 maven-version: '{maven-version}'