blob: 6e19c81bb034b089a5a022c1dd5e8876d73e5d4d [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
5- job-template:
lj1412d0704842017-02-18 21:46:11 +00006 # Job template for verifying a submission. triggered on
7 # gerrit-trigger-patch-submitted, does scm, mvn with passed in goals,
8 # then run script
lj1412f75ed992017-02-17 22:21:06 +00009 #
10 # Required Variables:
11 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000012 # script: build script to execute
13 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000014 # mvn-goals: space separated list of maven build goals (e.g.
15 # clean, install etc, --version for noop)
lj1412f75ed992017-02-17 22:21:06 +000016 name: '{project-name}-{stream}-verify-scm-mvn-script'
17
18 project-type: freestyle
19 concurrent: true
lj1412d0704842017-02-18 21:46:11 +000020 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000021
22 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070023 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000024 build-days-to-keep: '{build-days-to-keep}'
25
26 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070027 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000028 project: '{project}'
29 branch: '{branch}'
30 refspec: 'refs/heads/{branch}'
31 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080032 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080033 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000034
35 scm:
36 - gerrit-trigger-scm:
37 refspec: '$GERRIT_REFSPEC'
38 choosing-strategy: 'gerrit'
39
40 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070041 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +000042 build-timeout: '{build-timeout}'
43
44 triggers:
45 - gerrit-trigger-patch-submitted:
46 server: '{server-name}'
47 project: '{project}'
48 branch: '{branch}'
49 files: '**'
50
51 builders:
52 - provide-maven-settings:
53 global-settings-file: 'global-settings'
54 settings-file: '{mvn-settings}'
55 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080056 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000057 goals: '{mvn-goals}'
58 settings: '{mvn-settings}'
59 settings-type: cfp
60 global-settings: 'global-settings'
61 global-settings-type: cfp
62 - docker-login
63 - shell: '{script}'
64
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070065 publishers:
66 - infra-shiplogs:
67 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000068
lj1412f75ed992017-02-17 22:21:06 +000069- job-template:
lj1412d0704842017-02-18 21:46:11 +000070 # Job template for merging a submission. triggered on
71 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
72 # run script
lj1412f75ed992017-02-17 22:21:06 +000073 # Required Variables:
74 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000075 # script: build script to execute
76 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000077 # mvn-goals: space separated list of maven build goals (--version
78 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000079 name: '{project-name}-{stream}-merge-scm-mvn-script'
80
81 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000082 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000083
84 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070085 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000086 build-days-to-keep: '{build-days-to-keep}'
87
88 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070089 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000090 project: '{project}'
91 branch: '{branch}'
92 refspec: 'refs/heads/{branch}'
93 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080094 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080095 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000096
97 scm:
98 - gerrit-trigger-scm:
99 refspec: ''
100 choosing-strategy: 'default'
101
102 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700103 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000104 build-timeout: '{build-timeout}'
105
106 triggers:
107 - gerrit-trigger-patch-merged:
108 server: '{server-name}'
109 project: '{project}'
110 branch: '{branch}'
111 files: '**'
112
113 builders:
114 - provide-maven-settings:
115 global-settings-file: 'global-settings'
116 settings-file: '{mvn-settings}'
117 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800118 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000119 goals: '{mvn-goals}'
120 settings: '{mvn-settings}'
121 settings-type: cfp
122 global-settings: 'global-settings'
123 global-settings-type: cfp
124 - docker-login
125 - shell: '{script}'
126
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700127 publishers:
128 - infra-shiplogs:
129 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000130
lj1412f75ed992017-02-17 22:21:06 +0000131- job-template:
lj1412d0704842017-02-18 21:46:11 +0000132 # Job template for daily-release a submission. triggered on timer, does
133 # scm mvn with passed-in goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000134 #
135 # Required Variables:
136 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000137 # script: build script to execute
lj1412d0704842017-02-18 21:46:11 +0000138 # mvn-goals-versioning: space separated list of maven build goals
139 # (--version for no op,
140 # or versions:set versions:update-child-modules versions:commit)
141 # mvn-goals: space separated list of maven build goals (--version for
142 # noop, or clean deploy)
lj1412f75ed992017-02-17 22:21:06 +0000143 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
144
145 project-type: freestyle
146 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000147 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000148
149 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700150 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000151 build-days-to-keep: '{build-days-to-keep}'
152
153 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700154 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000155 project: '{project}'
156 branch: '{branch}'
157 refspec: 'refs/heads/{branch}'
158 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800159 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800160 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000161
162 scm:
163 - gerrit-trigger-scm:
164 refspec: ''
165 choosing-strategy: 'default'
166
167 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700168 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000169 build-timeout: '{build-timeout}'
170
171 triggers:
172 # 11 AM UTC
173 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000174 - gerrit-trigger-release-manually:
175 server: '{server-name}'
176 project: '{project}'
177 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000178
179 builders:
180 - provide-maven-settings:
181 global-settings-file: 'global-settings'
182 settings-file: '{mvn-settings}'
183 - inject:
184 properties-file: version.properties
185 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800186 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000187 goals: '{mvn-goals-versioning}'
188 properties:
189 - 'newVersion=${{release_version}}'
190 settings: '{mvn-settings}'
191 settings-type: cfp
192 global-settings: 'global-settings'
193 global-settings-type: cfp
194
195 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800196 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000197 goals: '{mvn-goals}'
198 properties:
199 - '{maven-deploy-properties}'
200 settings: '{mvn-settings}'
201 settings-type: cfp
202 global-settings: 'global-settings'
203 global-settings-type: cfp
204 - docker-login
205 - shell: '{script}'
206
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700207 publishers:
208 - infra-shiplogs:
209 maven-version: '{maven-version}'
210
Carsten Lund01c060e2017-03-08 14:26:52 +0000211- job-template:
212 # Job template for daily-release a submission. triggered on timer, does
213 # scm mvn with passed-in goals, then run script.
214 # Version changed using include-update-pom-versions.sh script
215 #
216 # Required Variables:
217 # branch: git branch
218 # script: build script to execute
219 # mvn-goals: space separated list of maven build goals (--version for
220 # noop, or clean deploy)
221 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
222
223 project-type: freestyle
224 concurrent: true
225 node: 'ubuntu1604-docker-8c-8g'
226
227 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700228 - infra-properties:
Carsten Lund01c060e2017-03-08 14:26:52 +0000229 build-days-to-keep: '{build-days-to-keep}'
230
231 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700232 - infra-parameters:
Carsten Lund01c060e2017-03-08 14:26:52 +0000233 project: '{project}'
234 branch: '{branch}'
235 refspec: 'refs/heads/{branch}'
236 artifacts: '{archive-artifacts}'
237 - maven-exec:
238 maven-version: '{maven-version}'
239
240 scm:
241 - gerrit-trigger-scm:
242 refspec: ''
243 choosing-strategy: 'default'
244
245 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700246 - infra-wrappers:
Carsten Lund01c060e2017-03-08 14:26:52 +0000247 build-timeout: '{build-timeout}'
248
249 triggers:
250 # 11 AM UTC
251 - timed: 'H 11 * * *'
252 - gerrit-trigger-release-manually:
253 server: '{server-name}'
254 project: '{project}'
255 branch: '{branch}'
256
257 builders:
258 - provide-maven-settings:
259 global-settings-file: 'global-settings'
260 settings-file: '{mvn-settings}'
261
262 - inject:
263 properties-file: version.properties
264
265 - shell: !include-raw-escape: include-update-pom-versions.sh
266
267 - maven-target:
268 maven-version: '{maven-version}'
269 goals: '{mvn-goals}'
270 properties:
271 - '{maven-deploy-properties}'
272 settings: '{mvn-settings}'
273 settings-type: cfp
274 global-settings: 'global-settings'
275 global-settings-type: cfp
276 - docker-login
277 - shell: '{script}'
278
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700279 publishers:
280 - infra-shiplogs:
281 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000282
lj1412f75ed992017-02-17 22:21:06 +0000283- job-template:
lj1412d0704842017-02-18 21:46:11 +0000284 # Job template for verifying a submission. triggered on
285 # gerrit-trigger-patch-submitted,
lj1412f75ed992017-02-17 22:21:06 +0000286 # does scm 2 repos, mvn with passed-in goals, then run script
287 #
288 # Required Variables:
289 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000290 # script: build script to execute
291 # extra-project: extra gerrit project to checkout
292 # extra-refspec: refspec for the extra project
293 # extra-branch: branch to checkout for the extra project
294 # checkout-dir: directory to checkout the extra project to
295 # DO NOT SET THIS TO anything that translates to
296 # $WORKSPACE as it will destroy the initial
297 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000298 # mvn-goals: space separated list of maven build goals (e.g.
299 # clean, install etc, --version for noop)
lj1412f75ed992017-02-17 22:21:06 +0000300
301 name: '{project-name}-{stream}-verify-2scm-mvn-script'
302
303 project-type: freestyle
304 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000305 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000306
307 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700308 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000309 build-days-to-keep: '{build-days-to-keep}'
310
311 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700312 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000313 project: '{project}'
314 branch: '{branch}'
315 refspec: 'refs/heads/{branch}'
316 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800317 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800318 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000319
320 scm:
321 - gerrit-trigger-scm:
322 refspec: '$GERRIT_REFSPEC'
323 choosing-strategy: 'gerrit'
324 - git-extra-project:
325 project: '{extra-project}'
326 refspec: '{extra-refspec}'
327 branch: '{extra-branch}'
328 checkout-dir: '{checkout-dir}'
329
330 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700331 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000332 build-timeout: '{build-timeout}'
333
334 triggers:
335 - gerrit-trigger-patch-submitted:
336 server: '{server-name}'
337 project: '{project}'
338 branch: '{branch}'
339 files: '**'
340
341 builders:
342 - provide-maven-settings:
343 global-settings-file: 'global-settings'
344 settings-file: '{mvn-settings}'
345 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800346 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000347 goals: '{mvn-goals}'
348 settings: '{mvn-settings}'
349 settings-type: cfp
350 global-settings: 'global-settings'
351 global-settings-type: cfp
352 - docker-login
353 - shell: '{script}'
354
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700355 publishers:
356 - infra-shiplogs:
357 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000358
lj1412f75ed992017-02-17 22:21:06 +0000359- job-template:
lj1412d0704842017-02-18 21:46:11 +0000360 # Job template for merged submission. triggered on
361 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
362 # goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000363 #
364 # Required Variables:
365 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000366 # script: build script to execute
367 # extra-project: extra gerrit project to checkout
368 # extra-refspec: refspec for the extra project
369 # extra-branch: branch to checkout for the extra project
370 # checkout-dir: directory to checkout the extra project to
371 # DO NOT SET THIS TO anything that translates to
372 # $WORKSPACE as it will destroy the initial
373 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000374 # mvn-goals: space separated list of maven build goals (--version
375 # for noop, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000376
377 name: '{project-name}-{stream}-merge-2scm-mvn-script'
378
379 project-type: freestyle
380 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000381 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000382
383 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700384 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000385 build-days-to-keep: '{build-days-to-keep}'
386
387 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700388 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000389 project: '{project}'
390 branch: '{branch}'
391 refspec: 'refs/heads/{branch}'
392 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800393 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800394 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000395
396 scm:
397 - gerrit-trigger-scm:
398 refspec: ''
399 choosing-strategy: 'default'
400 - git-extra-project:
401 project: '{extra-project}'
402 refspec: '{extra-refspec}'
403 branch: '{extra-branch}'
404 checkout-dir: '{checkout-dir}'
405
406 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700407 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000408 build-timeout: '{build-timeout}'
409
410 triggers:
411 - gerrit-trigger-patch-merged:
412 server: '{server-name}'
413 project: '{project}'
414 branch: '{branch}'
415 files: '**'
416
417 builders:
418 - provide-maven-settings:
419 global-settings-file: 'global-settings'
420 settings-file: '{mvn-settings}'
421 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800422 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000423 goals: '{mvn-goals}'
424 settings: '{mvn-settings}'
425 settings-type: cfp
426 global-settings: 'global-settings'
427 global-settings-type: cfp
428 - docker-login
429 - shell: '{script}'
430
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700431 publishers:
432 - infra-shiplogs:
433 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000434
lj1412f75ed992017-02-17 22:21:06 +0000435- job-template:
lj1412d0704842017-02-18 21:46:11 +0000436 # Job template for merged submission. triggered on
437 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
438 # then run script
lj1412f75ed992017-02-17 22:21:06 +0000439 #
440 # Required Variables:
441 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000442 # script: build script to execute
443 # extra-project: extra gerrit project to checkout
444 # extra-refspec: refspec for the extra project
445 # extra-branch: branch to checkout for the extra project
446 # checkout-dir: directory to checkout the extra project to
447 # DO NOT SET THIS TO anything that translates to
448 # $WORKSPACE as it will destroy the initial
449 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000450 # mvn-goals: space separated list of maven build goals (--version
451 # for noop, clean deploy for mvn project)
452 # mvn-goals-versioning: space separated list of maven build goals
453 # (--version for no op, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000454
455 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
456
457 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +0000458 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000459
460 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700461 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000462 build-days-to-keep: '{build-days-to-keep}'
463
464 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700465 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000466 project: '{project}'
467 branch: '{branch}'
468 refspec: 'refs/heads/{branch}'
469 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800470 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800471 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000472
473 scm:
474 - gerrit-trigger-scm:
475 refspec: ''
476 choosing-strategy: 'default'
477 - git-extra-project:
478 project: '{extra-project}'
479 refspec: '{extra-refspec}'
480 branch: '{extra-branch}'
481 checkout-dir: '{checkout-dir}'
482
483 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700484 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000485 build-timeout: '{build-timeout}'
486
487 triggers:
488 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000489 - gerrit-trigger-release-manually:
490 server: '{server-name}'
491 project: '{project}'
492 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000493
494 builders:
495 - provide-maven-settings:
496 global-settings-file: 'global-settings'
497 settings-file: '{mvn-settings}'
498 - inject:
499 properties-file: version.properties
500 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800501 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000502 goals: '{mvn-goals-versioning}'
503 properties:
504 - 'newVersion=${{release_version}}'
505 settings: '{mvn-settings}'
506 settings-type: cfp
507 global-settings: 'global-settings'
508 global-settings-type: cfp
509
510 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800511 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000512 goals: '{mvn-goals}'
513 settings: '{mvn-settings}'
514 settings-type: cfp
515 global-settings: 'global-settings'
516 global-settings-type: cfp
517 - docker-login
518 - shell: '{script}'
519
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700520 publishers:
521 - infra-shiplogs:
522 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000523
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800524- job-template:
525 # Job template for basic scm and script trigger
526 #
527 # Required Variables:
528 # branch: git branch
529 # build-node: what build node to run on
530 # script: build script to execute
531
532 name: '{project-name}-{stream}-verify-script'
533
534 project-type: freestyle
535 concurrent: true
536 node: '{build-node}'
537
538 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700539 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800540 build-days-to-keep: '{build-days-to-keep}'
541
542 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700543 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800544 project: '{project}'
545 branch: '{branch}'
546 refspec: 'refs/heads/{branch}'
547 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800548 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800549 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800550
551 scm:
552 - gerrit-trigger-scm:
553 refspec: '$GERRIT_REFSPEC'
554 choosing-strategy: 'gerrit'
555
556 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700557 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800558 build-timeout: '{build-timeout}'
559
560 triggers:
561 - gerrit-trigger-patch-submitted:
562 server: '{server-name}'
563 project: '{project}'
564 branch: '{branch}'
565 files: '**'
566
567 builders:
568 - provide-maven-settings:
569 global-settings-file: 'global-settings'
570 settings-file: '{mvn-settings}'
571 # make sure maven gets installed / setup
572 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800573 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800574 goals: '--version'
575 settings: '{mvn-settings}'
576 settings-type: cfp
577 global-settings: 'global-settings'
578 global-settings-type: cfp
579 - shell: '{script}'
580
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700581 publishers:
582 - infra-shiplogs:
583 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800584
585- job-template:
586 # Job template for 2 scm and script trigger
587 #
588 # Required Variables:
589 # branch: git branch
590 # build-node: what build node to run on
591 # script: build script to execute
592 # extra-project: extra gerrit project to checkout
593 # extra-refspec: refspec for the extra project
594 # extra-branch: branch to checkout for the extra project
595 # checkout-dir: directory to checkout the extra project to
596 # DO NOT SET THIS TO anything that translates to
597 # $WORKSPACE as it will destroy the initial
598 # project checkout
599
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -0800600 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800601
602 project-type: freestyle
603 concurrent: true
604 node: '{build-node}'
605
606 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700607 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800608 build-days-to-keep: '{build-days-to-keep}'
609
610 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700611 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800612 project: '{project}'
613 branch: '{branch}'
614 refspec: 'refs/heads/{branch}'
615 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800616 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800617 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800618
619 scm:
620 - gerrit-trigger-scm:
621 refspec: '$GERRIT_REFSPEC'
622 choosing-strategy: 'gerrit'
623 - git-extra-project:
624 project: '{extra-project}'
625 refspec: '{extra-refspec}'
626 branch: '{extra-branch}'
627 checkout-dir: '{checkout-dir}'
628
629 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700630 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800631 build-timeout: '{build-timeout}'
632
633 triggers:
634 - gerrit-trigger-patch-submitted:
635 server: '{server-name}'
636 project: '{project}'
637 branch: '{branch}'
638 files: '**'
639
640 builders:
641 - provide-maven-settings:
642 global-settings-file: 'global-settings'
643 settings-file: '{mvn-settings}'
644 # make sure maven gets installed / setup
645 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800646 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800647 goals: '--version'
648 settings: '{mvn-settings}'
649 settings-type: cfp
650 global-settings: 'global-settings'
651 global-settings-type: cfp
652 - shell: '{script}'
653
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700654 publishers:
655 - infra-shiplogs:
656 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500657
658
659- job-template:
660 # Job template for 3 scm and script trigger
661 #
662 # Required Variables:
663 # branch: git branch
664 # build-node: what build node to run on
665 # script: build script to execute
666 # extra-project1: extra gerrit project to checkout
667 # extra-refspec1: refspec for the extra project
668 # extra-branch1: branch to checkout for the extra project
669 # checkout-dir1: directory to checkout the extra project to
670 # DO NOT SET THIS TO anything that translates to
671 # $WORKSPACE as it will destroy the initial
672 # project checkout
673 # extra-project2: extra gerrit project to checkout
674 # extra-refspec2: refspec for the extra project
675 # extra-branch2: branch to checkout for the extra project
676 # checkout-dir2: directory to checkout the extra project to
677 # DO NOT SET THIS TO anything that translates to
678 # $WORKSPACE as it will destroy the initial
679 # project checkout
680 name: '{project-name}-{stream}-three-scm-verify-script'
681
682 project-type: freestyle
683 concurrent: true
684 node: '{build-node}'
685
686 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700687 - infra-properties:
talasila91a608b2017-02-16 12:46:32 -0500688 build-days-to-keep: '{build-days-to-keep}'
689
690 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700691 - infra-parameters:
talasila91a608b2017-02-16 12:46:32 -0500692 project: '{project}'
693 branch: '{branch}'
694 refspec: 'refs/heads/{branch}'
695 artifacts: '{archive-artifacts}'
talasila596787c2017-02-19 20:47:56 -0500696 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800697 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500698 scm:
699 - gerrit-trigger-scm:
700 refspec: '$GERRIT_REFSPEC'
701 choosing-strategy: 'gerrit'
702 - git-extra-project:
703 project: '{extra-project1}'
704 refspec: '{extra-refspec1}'
705 branch: '{extra-branch1}'
706 checkout-dir: '{checkout-dir1}'
707 - git-extra-project:
708 project: '{extra-project2}'
709 refspec: '{extra-refspec2}'
710 branch: '{extra-branch2}'
711 checkout-dir: '{checkout-dir2}'
712
713 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700714 - infra-wrappers:
talasila91a608b2017-02-16 12:46:32 -0500715 build-timeout: '{build-timeout}'
716
717 triggers:
718 - gerrit-trigger-patch-submitted:
719 server: '{server-name}'
720 project: '{project}'
721 branch: '{branch}'
722 files: '**'
723
724 builders:
725 - provide-maven-settings:
726 global-settings-file: 'global-settings'
727 settings-file: '{mvn-settings}'
728 # make sure maven gets installed / setup
729 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800730 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500731 goals: '--version'
732 settings: '{mvn-settings}'
733 settings-type: cfp
734 global-settings: 'global-settings'
735 global-settings-type: cfp
736 - shell: '{script}'
737
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700738 publishers:
739 - infra-shiplogs:
740 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500741
742# vim: sw=2 ts=2 sts=2 et :
743
744- job-template:
745 # Job template for scm and script trigger - for docker merge
746 #
747 # Required Variables:
748 # branch: git branch
749 # build-node: what build node to run on
750 # script: build script to execute
751
752 name: '{project-name}-{stream}-merge-docker-script'
753
754 project-type: freestyle
755 concurrent: true
756 node: '{build-node}'
757
758 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700759 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500760 build-days-to-keep: '{build-days-to-keep}'
761
762 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700763 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500764 project: '{project}'
765 branch: '{branch}'
766 refspec: 'refs/heads/{branch}'
767 artifacts: '{archive-artifacts}'
768 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800769 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500770
771 scm:
772 - gerrit-trigger-scm:
773 refspec: ''
774 choosing-strategy: 'default'
talasila596787c2017-02-19 20:47:56 -0500775 - git-extra-project:
776 project: '{extra-project1}'
777 refspec: '{extra-refspec1}'
778 branch: '{extra-branch1}'
779 checkout-dir: '{checkout-dir1}'
780 - git-extra-project:
781 project: '{extra-project2}'
782 refspec: '{extra-refspec2}'
783 branch: '{extra-branch2}'
784 checkout-dir: '{checkout-dir2}'
talasila714fdfa2017-02-19 09:30:55 -0500785
786 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700787 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500788 build-timeout: '{build-timeout}'
789
790 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500791 - gerrit-trigger-patch-merged:
792 server: '{server-name}'
793 project: '{project}'
794 branch: '{branch}'
795 files: '**'
796
797 builders:
798 - provide-maven-settings:
799 global-settings-file: 'global-settings'
800 settings-file: '{mvn-settings}'
801 - docker-login
802 # make sure maven gets installed / setup
803 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800804 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500805 goals: '--version'
806 settings: '{mvn-settings}'
807 settings-type: cfp
808 global-settings: 'global-settings'
809 global-settings-type: cfp
810 - shell: '{script}'
811
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700812 publishers:
813 - infra-shiplogs:
814 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500815
816- job-template:
817 # Job template for scm and script trigger - for docker daily release
818 #
819 # Required Variables:
820 # branch: git branch
821 # build-node: what build node to run on
822 # script: build script to execute
823
talasila4d2421b2017-02-23 10:44:41 -0500824 name: '{project-name}-{stream}-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500825
826 project-type: freestyle
827 concurrent: true
828 node: '{build-node}'
829
830 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700831 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500832 build-days-to-keep: '{build-days-to-keep}'
833
834 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700835 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500836 project: '{project}'
837 branch: '{branch}'
838 refspec: 'refs/heads/{branch}'
839 artifacts: '{archive-artifacts}'
840 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800841 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500842
843 scm:
844 - gerrit-trigger-scm:
845 refspec: ''
846 choosing-strategy: 'default'
847 - git-extra-project:
848 project: '{extra-project1}'
849 refspec: '{extra-refspec1}'
850 branch: '{extra-branch1}'
851 checkout-dir: '{checkout-dir1}'
852 - git-extra-project:
853 project: '{extra-project2}'
854 refspec: '{extra-refspec2}'
855 branch: '{extra-branch2}'
856 checkout-dir: '{checkout-dir2}'
857
858 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700859 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500860 build-timeout: '{build-timeout}'
861
862 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500863 - gerrit-trigger-release-manually:
864 server: '{server-name}'
865 project: '{project}'
866 branch: '{branch}'
867
868 builders:
869 - provide-maven-settings:
870 global-settings-file: 'global-settings'
871 settings-file: '{mvn-settings}'
872 - docker-login
873 # make sure maven gets installed / setup
874 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800875 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500876 goals: '--version'
877 settings: '{mvn-settings}'
878 settings-type: cfp
879 global-settings: 'global-settings'
880 global-settings-type: cfp
881 - shell: '{script}'
882
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700883 publishers:
884 - infra-shiplogs:
885 maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800886
887- job-template:
888 # 1. PULL the desired image
889 # 2. TAG it to the desired release name
890 # 3. PUSH the newly tagged image on release repo
891
892 name: '{project-name}-docker-image-blessing'
893
894 project-type: freestyle
895 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500896 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800897
898 parameters:
899 - string:
JulienBed45ff952017-03-28 02:54:51 -0700900 name: X
901 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
902 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800903 - string:
JulienBed45ff952017-03-28 02:54:51 -0700904 name: Y
905 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
906 Example : 2"
907 - string:
908 name: Z
909 description: "z VERSION of the RELEASE VERSION
910 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800911 - string:
912 name: PROJECT
913 default: '{project}'
914
915 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700916 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800917 build-days-to-keep: '{build-days-to-keep}'
918
919 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700920 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800921 build-timeout: '{build-timeout}'
922
923 builders:
924 - provide-maven-settings:
925 global-settings-file: 'global-settings'
926 settings-file: '{mvn-settings}'
927 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500928 - shell: !include-raw: include-docker-blessing.sh
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700929
930 publishers:
931 - infra-shiplogs:
932 maven-version: '{maven-version}'