blob: 42cf98d4929521721630a6f07a094ebc76293cea [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
65
lj1412f75ed992017-02-17 22:21:06 +000066- job-template:
lj1412d0704842017-02-18 21:46:11 +000067 # Job template for merging a submission. triggered on
68 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
69 # run script
lj1412f75ed992017-02-17 22:21:06 +000070 # Required Variables:
71 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000072 # script: build script to execute
73 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000074 # mvn-goals: space separated list of maven build goals (--version
75 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000076 name: '{project-name}-{stream}-merge-scm-mvn-script'
77
78 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000079 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000080
81 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070082 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000083 build-days-to-keep: '{build-days-to-keep}'
84
85 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070086 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000087 project: '{project}'
88 branch: '{branch}'
89 refspec: 'refs/heads/{branch}'
90 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080091 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080092 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000093
94 scm:
95 - gerrit-trigger-scm:
96 refspec: ''
97 choosing-strategy: 'default'
98
99 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700100 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000101 build-timeout: '{build-timeout}'
102
103 triggers:
104 - gerrit-trigger-patch-merged:
105 server: '{server-name}'
106 project: '{project}'
107 branch: '{branch}'
108 files: '**'
109
110 builders:
111 - provide-maven-settings:
112 global-settings-file: 'global-settings'
113 settings-file: '{mvn-settings}'
114 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800115 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000116 goals: '{mvn-goals}'
117 settings: '{mvn-settings}'
118 settings-type: cfp
119 global-settings: 'global-settings'
120 global-settings-type: cfp
121 - docker-login
122 - shell: '{script}'
123
124
lj1412f75ed992017-02-17 22:21:06 +0000125- job-template:
lj1412d0704842017-02-18 21:46:11 +0000126 # Job template for daily-release a submission. triggered on timer, does
127 # scm mvn with passed-in goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000128 #
129 # Required Variables:
130 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000131 # script: build script to execute
lj1412d0704842017-02-18 21:46:11 +0000132 # mvn-goals-versioning: space separated list of maven build goals
133 # (--version for no op,
134 # or versions:set versions:update-child-modules versions:commit)
135 # mvn-goals: space separated list of maven build goals (--version for
136 # noop, or clean deploy)
lj1412f75ed992017-02-17 22:21:06 +0000137 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
138
139 project-type: freestyle
140 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000141 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000142
143 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700144 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000145 build-days-to-keep: '{build-days-to-keep}'
146
147 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000149 project: '{project}'
150 branch: '{branch}'
151 refspec: 'refs/heads/{branch}'
152 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800153 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800154 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000155
156 scm:
157 - gerrit-trigger-scm:
158 refspec: ''
159 choosing-strategy: 'default'
160
161 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700162 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000163 build-timeout: '{build-timeout}'
164
165 triggers:
166 # 11 AM UTC
167 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000168 - gerrit-trigger-release-manually:
169 server: '{server-name}'
170 project: '{project}'
171 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000172
173 builders:
174 - provide-maven-settings:
175 global-settings-file: 'global-settings'
176 settings-file: '{mvn-settings}'
177 - inject:
178 properties-file: version.properties
179 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800180 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000181 goals: '{mvn-goals-versioning}'
182 properties:
183 - 'newVersion=${{release_version}}'
184 settings: '{mvn-settings}'
185 settings-type: cfp
186 global-settings: 'global-settings'
187 global-settings-type: cfp
188
189 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800190 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000191 goals: '{mvn-goals}'
192 properties:
193 - '{maven-deploy-properties}'
194 settings: '{mvn-settings}'
195 settings-type: cfp
196 global-settings: 'global-settings'
197 global-settings-type: cfp
198 - docker-login
199 - shell: '{script}'
200
Carsten Lund01c060e2017-03-08 14:26:52 +0000201- job-template:
202 # Job template for daily-release a submission. triggered on timer, does
203 # scm mvn with passed-in goals, then run script.
204 # Version changed using include-update-pom-versions.sh script
205 #
206 # Required Variables:
207 # branch: git branch
208 # script: build script to execute
209 # mvn-goals: space separated list of maven build goals (--version for
210 # noop, or clean deploy)
211 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
212
213 project-type: freestyle
214 concurrent: true
215 node: 'ubuntu1604-docker-8c-8g'
216
217 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700218 - infra-properties:
Carsten Lund01c060e2017-03-08 14:26:52 +0000219 build-days-to-keep: '{build-days-to-keep}'
220
221 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700222 - infra-parameters:
Carsten Lund01c060e2017-03-08 14:26:52 +0000223 project: '{project}'
224 branch: '{branch}'
225 refspec: 'refs/heads/{branch}'
226 artifacts: '{archive-artifacts}'
227 - maven-exec:
228 maven-version: '{maven-version}'
229
230 scm:
231 - gerrit-trigger-scm:
232 refspec: ''
233 choosing-strategy: 'default'
234
235 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700236 - infra-wrappers:
Carsten Lund01c060e2017-03-08 14:26:52 +0000237 build-timeout: '{build-timeout}'
238
239 triggers:
240 # 11 AM UTC
241 - timed: 'H 11 * * *'
242 - gerrit-trigger-release-manually:
243 server: '{server-name}'
244 project: '{project}'
245 branch: '{branch}'
246
247 builders:
248 - provide-maven-settings:
249 global-settings-file: 'global-settings'
250 settings-file: '{mvn-settings}'
251
252 - inject:
253 properties-file: version.properties
254
255 - shell: !include-raw-escape: include-update-pom-versions.sh
256
257 - maven-target:
258 maven-version: '{maven-version}'
259 goals: '{mvn-goals}'
260 properties:
261 - '{maven-deploy-properties}'
262 settings: '{mvn-settings}'
263 settings-type: cfp
264 global-settings: 'global-settings'
265 global-settings-type: cfp
266 - docker-login
267 - shell: '{script}'
268
269
lj1412f75ed992017-02-17 22:21:06 +0000270
lj1412f75ed992017-02-17 22:21:06 +0000271- job-template:
lj1412d0704842017-02-18 21:46:11 +0000272 # Job template for verifying a submission. triggered on
273 # gerrit-trigger-patch-submitted,
lj1412f75ed992017-02-17 22:21:06 +0000274 # does scm 2 repos, mvn with passed-in goals, then run script
275 #
276 # Required Variables:
277 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000278 # script: build script to execute
279 # extra-project: extra gerrit project to checkout
280 # extra-refspec: refspec for the extra project
281 # extra-branch: branch to checkout for the extra project
282 # checkout-dir: directory to checkout the extra project to
283 # DO NOT SET THIS TO anything that translates to
284 # $WORKSPACE as it will destroy the initial
285 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000286 # mvn-goals: space separated list of maven build goals (e.g.
287 # clean, install etc, --version for noop)
lj1412f75ed992017-02-17 22:21:06 +0000288
289 name: '{project-name}-{stream}-verify-2scm-mvn-script'
290
291 project-type: freestyle
292 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000293 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000294
295 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700296 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000297 build-days-to-keep: '{build-days-to-keep}'
298
299 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700300 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000301 project: '{project}'
302 branch: '{branch}'
303 refspec: 'refs/heads/{branch}'
304 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800305 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800306 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000307
308 scm:
309 - gerrit-trigger-scm:
310 refspec: '$GERRIT_REFSPEC'
311 choosing-strategy: 'gerrit'
312 - git-extra-project:
313 project: '{extra-project}'
314 refspec: '{extra-refspec}'
315 branch: '{extra-branch}'
316 checkout-dir: '{checkout-dir}'
317
318 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700319 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000320 build-timeout: '{build-timeout}'
321
322 triggers:
323 - gerrit-trigger-patch-submitted:
324 server: '{server-name}'
325 project: '{project}'
326 branch: '{branch}'
327 files: '**'
328
329 builders:
330 - provide-maven-settings:
331 global-settings-file: 'global-settings'
332 settings-file: '{mvn-settings}'
333 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800334 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000335 goals: '{mvn-goals}'
336 settings: '{mvn-settings}'
337 settings-type: cfp
338 global-settings: 'global-settings'
339 global-settings-type: cfp
340 - docker-login
341 - shell: '{script}'
342
343
lj1412f75ed992017-02-17 22:21:06 +0000344- job-template:
lj1412d0704842017-02-18 21:46:11 +0000345 # Job template for merged submission. triggered on
346 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
347 # goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000348 #
349 # Required Variables:
350 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000351 # script: build script to execute
352 # extra-project: extra gerrit project to checkout
353 # extra-refspec: refspec for the extra project
354 # extra-branch: branch to checkout for the extra project
355 # checkout-dir: directory to checkout the extra project to
356 # DO NOT SET THIS TO anything that translates to
357 # $WORKSPACE as it will destroy the initial
358 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000359 # mvn-goals: space separated list of maven build goals (--version
360 # for noop, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000361
362 name: '{project-name}-{stream}-merge-2scm-mvn-script'
363
364 project-type: freestyle
365 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000366 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000367
368 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700369 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000370 build-days-to-keep: '{build-days-to-keep}'
371
372 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700373 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000374 project: '{project}'
375 branch: '{branch}'
376 refspec: 'refs/heads/{branch}'
377 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800378 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800379 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000380
381 scm:
382 - gerrit-trigger-scm:
383 refspec: ''
384 choosing-strategy: 'default'
385 - git-extra-project:
386 project: '{extra-project}'
387 refspec: '{extra-refspec}'
388 branch: '{extra-branch}'
389 checkout-dir: '{checkout-dir}'
390
391 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700392 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000393 build-timeout: '{build-timeout}'
394
395 triggers:
396 - gerrit-trigger-patch-merged:
397 server: '{server-name}'
398 project: '{project}'
399 branch: '{branch}'
400 files: '**'
401
402 builders:
403 - provide-maven-settings:
404 global-settings-file: 'global-settings'
405 settings-file: '{mvn-settings}'
406 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800407 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000408 goals: '{mvn-goals}'
409 settings: '{mvn-settings}'
410 settings-type: cfp
411 global-settings: 'global-settings'
412 global-settings-type: cfp
413 - docker-login
414 - shell: '{script}'
415
416
lj1412f75ed992017-02-17 22:21:06 +0000417- job-template:
lj1412d0704842017-02-18 21:46:11 +0000418 # Job template for merged submission. triggered on
419 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
420 # then run script
lj1412f75ed992017-02-17 22:21:06 +0000421 #
422 # Required Variables:
423 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000424 # script: build script to execute
425 # extra-project: extra gerrit project to checkout
426 # extra-refspec: refspec for the extra project
427 # extra-branch: branch to checkout for the extra project
428 # checkout-dir: directory to checkout the extra project to
429 # DO NOT SET THIS TO anything that translates to
430 # $WORKSPACE as it will destroy the initial
431 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000432 # mvn-goals: space separated list of maven build goals (--version
433 # for noop, clean deploy for mvn project)
434 # mvn-goals-versioning: space separated list of maven build goals
435 # (--version for no op, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000436
437 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
438
439 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +0000440 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000441
442 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700443 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000444 build-days-to-keep: '{build-days-to-keep}'
445
446 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700447 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000448 project: '{project}'
449 branch: '{branch}'
450 refspec: 'refs/heads/{branch}'
451 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800452 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800453 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000454
455 scm:
456 - gerrit-trigger-scm:
457 refspec: ''
458 choosing-strategy: 'default'
459 - git-extra-project:
460 project: '{extra-project}'
461 refspec: '{extra-refspec}'
462 branch: '{extra-branch}'
463 checkout-dir: '{checkout-dir}'
464
465 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700466 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000467 build-timeout: '{build-timeout}'
468
469 triggers:
470 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000471 - gerrit-trigger-release-manually:
472 server: '{server-name}'
473 project: '{project}'
474 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000475
476 builders:
477 - provide-maven-settings:
478 global-settings-file: 'global-settings'
479 settings-file: '{mvn-settings}'
480 - inject:
481 properties-file: version.properties
482 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800483 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000484 goals: '{mvn-goals-versioning}'
485 properties:
486 - 'newVersion=${{release_version}}'
487 settings: '{mvn-settings}'
488 settings-type: cfp
489 global-settings: 'global-settings'
490 global-settings-type: cfp
491
492 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800493 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000494 goals: '{mvn-goals}'
495 settings: '{mvn-settings}'
496 settings-type: cfp
497 global-settings: 'global-settings'
498 global-settings-type: cfp
499 - docker-login
500 - shell: '{script}'
501
502
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800503- job-template:
504 # Job template for basic scm and script trigger
505 #
506 # Required Variables:
507 # branch: git branch
508 # build-node: what build node to run on
509 # script: build script to execute
510
511 name: '{project-name}-{stream}-verify-script'
512
513 project-type: freestyle
514 concurrent: true
515 node: '{build-node}'
516
517 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700518 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800519 build-days-to-keep: '{build-days-to-keep}'
520
521 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700522 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800523 project: '{project}'
524 branch: '{branch}'
525 refspec: 'refs/heads/{branch}'
526 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800527 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800528 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800529
530 scm:
531 - gerrit-trigger-scm:
532 refspec: '$GERRIT_REFSPEC'
533 choosing-strategy: 'gerrit'
534
535 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700536 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800537 build-timeout: '{build-timeout}'
538
539 triggers:
540 - gerrit-trigger-patch-submitted:
541 server: '{server-name}'
542 project: '{project}'
543 branch: '{branch}'
544 files: '**'
545
546 builders:
547 - provide-maven-settings:
548 global-settings-file: 'global-settings'
549 settings-file: '{mvn-settings}'
550 # make sure maven gets installed / setup
551 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800552 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800553 goals: '--version'
554 settings: '{mvn-settings}'
555 settings-type: cfp
556 global-settings: 'global-settings'
557 global-settings-type: cfp
558 - shell: '{script}'
559
560# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700561# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800562# maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800563
564- job-template:
565 # Job template for 2 scm and script trigger
566 #
567 # Required Variables:
568 # branch: git branch
569 # build-node: what build node to run on
570 # script: build script to execute
571 # extra-project: extra gerrit project to checkout
572 # extra-refspec: refspec for the extra project
573 # extra-branch: branch to checkout for the extra project
574 # checkout-dir: directory to checkout the extra project to
575 # DO NOT SET THIS TO anything that translates to
576 # $WORKSPACE as it will destroy the initial
577 # project checkout
578
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -0800579 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800580
581 project-type: freestyle
582 concurrent: true
583 node: '{build-node}'
584
585 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700586 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800587 build-days-to-keep: '{build-days-to-keep}'
588
589 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700590 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800591 project: '{project}'
592 branch: '{branch}'
593 refspec: 'refs/heads/{branch}'
594 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800595 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800596 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800597
598 scm:
599 - gerrit-trigger-scm:
600 refspec: '$GERRIT_REFSPEC'
601 choosing-strategy: 'gerrit'
602 - git-extra-project:
603 project: '{extra-project}'
604 refspec: '{extra-refspec}'
605 branch: '{extra-branch}'
606 checkout-dir: '{checkout-dir}'
607
608 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700609 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800610 build-timeout: '{build-timeout}'
611
612 triggers:
613 - gerrit-trigger-patch-submitted:
614 server: '{server-name}'
615 project: '{project}'
616 branch: '{branch}'
617 files: '**'
618
619 builders:
620 - provide-maven-settings:
621 global-settings-file: 'global-settings'
622 settings-file: '{mvn-settings}'
623 # make sure maven gets installed / setup
624 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800625 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800626 goals: '--version'
627 settings: '{mvn-settings}'
628 settings-type: cfp
629 global-settings: 'global-settings'
630 global-settings-type: cfp
631 - shell: '{script}'
632
633# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700634# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800635# maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500636
637
638- job-template:
639 # Job template for 3 scm and script trigger
640 #
641 # Required Variables:
642 # branch: git branch
643 # build-node: what build node to run on
644 # script: build script to execute
645 # extra-project1: extra gerrit project to checkout
646 # extra-refspec1: refspec for the extra project
647 # extra-branch1: branch to checkout for the extra project
648 # checkout-dir1: directory to checkout the extra project to
649 # DO NOT SET THIS TO anything that translates to
650 # $WORKSPACE as it will destroy the initial
651 # project checkout
652 # extra-project2: extra gerrit project to checkout
653 # extra-refspec2: refspec for the extra project
654 # extra-branch2: branch to checkout for the extra project
655 # checkout-dir2: directory to checkout the extra project to
656 # DO NOT SET THIS TO anything that translates to
657 # $WORKSPACE as it will destroy the initial
658 # project checkout
659 name: '{project-name}-{stream}-three-scm-verify-script'
660
661 project-type: freestyle
662 concurrent: true
663 node: '{build-node}'
664
665 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700666 - infra-properties:
talasila91a608b2017-02-16 12:46:32 -0500667 build-days-to-keep: '{build-days-to-keep}'
668
669 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700670 - infra-parameters:
talasila91a608b2017-02-16 12:46:32 -0500671 project: '{project}'
672 branch: '{branch}'
673 refspec: 'refs/heads/{branch}'
674 artifacts: '{archive-artifacts}'
talasila596787c2017-02-19 20:47:56 -0500675 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800676 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500677 scm:
678 - gerrit-trigger-scm:
679 refspec: '$GERRIT_REFSPEC'
680 choosing-strategy: 'gerrit'
681 - git-extra-project:
682 project: '{extra-project1}'
683 refspec: '{extra-refspec1}'
684 branch: '{extra-branch1}'
685 checkout-dir: '{checkout-dir1}'
686 - git-extra-project:
687 project: '{extra-project2}'
688 refspec: '{extra-refspec2}'
689 branch: '{extra-branch2}'
690 checkout-dir: '{checkout-dir2}'
691
692 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700693 - infra-wrappers:
talasila91a608b2017-02-16 12:46:32 -0500694 build-timeout: '{build-timeout}'
695
696 triggers:
697 - gerrit-trigger-patch-submitted:
698 server: '{server-name}'
699 project: '{project}'
700 branch: '{branch}'
701 files: '**'
702
703 builders:
704 - provide-maven-settings:
705 global-settings-file: 'global-settings'
706 settings-file: '{mvn-settings}'
707 # make sure maven gets installed / setup
708 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800709 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500710 goals: '--version'
711 settings: '{mvn-settings}'
712 settings-type: cfp
713 global-settings: 'global-settings'
714 global-settings-type: cfp
715 - shell: '{script}'
716
717# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700718# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800719# maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500720
721# vim: sw=2 ts=2 sts=2 et :
722
723- job-template:
724 # Job template for scm and script trigger - for docker merge
725 #
726 # Required Variables:
727 # branch: git branch
728 # build-node: what build node to run on
729 # script: build script to execute
730
731 name: '{project-name}-{stream}-merge-docker-script'
732
733 project-type: freestyle
734 concurrent: true
735 node: '{build-node}'
736
737 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700738 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500739 build-days-to-keep: '{build-days-to-keep}'
740
741 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700742 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500743 project: '{project}'
744 branch: '{branch}'
745 refspec: 'refs/heads/{branch}'
746 artifacts: '{archive-artifacts}'
747 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800748 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500749
750 scm:
751 - gerrit-trigger-scm:
752 refspec: ''
753 choosing-strategy: 'default'
talasila596787c2017-02-19 20:47:56 -0500754 - git-extra-project:
755 project: '{extra-project1}'
756 refspec: '{extra-refspec1}'
757 branch: '{extra-branch1}'
758 checkout-dir: '{checkout-dir1}'
759 - git-extra-project:
760 project: '{extra-project2}'
761 refspec: '{extra-refspec2}'
762 branch: '{extra-branch2}'
763 checkout-dir: '{checkout-dir2}'
talasila714fdfa2017-02-19 09:30:55 -0500764
765 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700766 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500767 build-timeout: '{build-timeout}'
768
769 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500770 - gerrit-trigger-patch-merged:
771 server: '{server-name}'
772 project: '{project}'
773 branch: '{branch}'
774 files: '**'
775
776 builders:
777 - provide-maven-settings:
778 global-settings-file: 'global-settings'
779 settings-file: '{mvn-settings}'
780 - docker-login
781 # make sure maven gets installed / setup
782 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800783 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500784 goals: '--version'
785 settings: '{mvn-settings}'
786 settings-type: cfp
787 global-settings: 'global-settings'
788 global-settings-type: cfp
789 - shell: '{script}'
790
791# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700792# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800793# maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500794
795- job-template:
796 # Job template for scm and script trigger - for docker daily release
797 #
798 # Required Variables:
799 # branch: git branch
800 # build-node: what build node to run on
801 # script: build script to execute
802
talasila4d2421b2017-02-23 10:44:41 -0500803 name: '{project-name}-{stream}-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500804
805 project-type: freestyle
806 concurrent: true
807 node: '{build-node}'
808
809 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700810 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500811 build-days-to-keep: '{build-days-to-keep}'
812
813 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700814 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500815 project: '{project}'
816 branch: '{branch}'
817 refspec: 'refs/heads/{branch}'
818 artifacts: '{archive-artifacts}'
819 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800820 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500821
822 scm:
823 - gerrit-trigger-scm:
824 refspec: ''
825 choosing-strategy: 'default'
826 - git-extra-project:
827 project: '{extra-project1}'
828 refspec: '{extra-refspec1}'
829 branch: '{extra-branch1}'
830 checkout-dir: '{checkout-dir1}'
831 - git-extra-project:
832 project: '{extra-project2}'
833 refspec: '{extra-refspec2}'
834 branch: '{extra-branch2}'
835 checkout-dir: '{checkout-dir2}'
836
837 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700838 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500839 build-timeout: '{build-timeout}'
840
841 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500842 - gerrit-trigger-release-manually:
843 server: '{server-name}'
844 project: '{project}'
845 branch: '{branch}'
846
847 builders:
848 - provide-maven-settings:
849 global-settings-file: 'global-settings'
850 settings-file: '{mvn-settings}'
851 - docker-login
852 # make sure maven gets installed / setup
853 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800854 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500855 goals: '--version'
856 settings: '{mvn-settings}'
857 settings-type: cfp
858 global-settings: 'global-settings'
859 global-settings-type: cfp
860 - shell: '{script}'
861
862# publishers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700863# - infra-shiplogs:
Andrew Grimberge2465882017-02-24 12:38:05 -0800864# maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800865
866- job-template:
867 # 1. PULL the desired image
868 # 2. TAG it to the desired release name
869 # 3. PUSH the newly tagged image on release repo
870
871 name: '{project-name}-docker-image-blessing'
872
873 project-type: freestyle
874 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500875 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800876
877 parameters:
878 - string:
JulienBed45ff952017-03-28 02:54:51 -0700879 name: X
880 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
881 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800882 - string:
JulienBed45ff952017-03-28 02:54:51 -0700883 name: Y
884 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
885 Example : 2"
886 - string:
887 name: Z
888 description: "z VERSION of the RELEASE VERSION
889 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800890 - string:
891 name: PROJECT
892 default: '{project}'
893
894 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700895 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800896 build-days-to-keep: '{build-days-to-keep}'
897
898 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700899 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800900 build-timeout: '{build-timeout}'
901
902 builders:
903 - provide-maven-settings:
904 global-settings-file: 'global-settings'
905 settings-file: '{mvn-settings}'
906 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500907 - shell: !include-raw: include-docker-blessing.sh