blob: 991ffd69a45de45cacc23f42d703d40e0c048589 [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'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050039 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +000040
41 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070042 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +000043 build-timeout: '{build-timeout}'
44
45 triggers:
46 - gerrit-trigger-patch-submitted:
47 server: '{server-name}'
48 project: '{project}'
49 branch: '{branch}'
50 files: '**'
51
52 builders:
53 - provide-maven-settings:
54 global-settings-file: 'global-settings'
55 settings-file: '{mvn-settings}'
56 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080057 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000058 goals: '{mvn-goals}'
59 settings: '{mvn-settings}'
60 settings-type: cfp
61 global-settings: 'global-settings'
62 global-settings-type: cfp
63 - docker-login
64 - shell: '{script}'
65
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070066 publishers:
67 - infra-shiplogs:
68 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000069
lj1412f75ed992017-02-17 22:21:06 +000070- job-template:
lj1412d0704842017-02-18 21:46:11 +000071 # Job template for merging a submission. triggered on
72 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
73 # run script
lj1412f75ed992017-02-17 22:21:06 +000074 # Required Variables:
75 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000076 # script: build script to execute
77 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000078 # mvn-goals: space separated list of maven build goals (--version
79 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000080 name: '{project-name}-{stream}-merge-scm-mvn-script'
81
82 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000083 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000084
85 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070086 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000087 build-days-to-keep: '{build-days-to-keep}'
88
89 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070090 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000091 project: '{project}'
92 branch: '{branch}'
93 refspec: 'refs/heads/{branch}'
94 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080095 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080096 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000097
98 scm:
99 - gerrit-trigger-scm:
100 refspec: ''
101 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500102 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +0000103
104 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700105 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000106 build-timeout: '{build-timeout}'
107
108 triggers:
109 - gerrit-trigger-patch-merged:
110 server: '{server-name}'
111 project: '{project}'
112 branch: '{branch}'
113 files: '**'
114
115 builders:
116 - provide-maven-settings:
117 global-settings-file: 'global-settings'
118 settings-file: '{mvn-settings}'
119 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800120 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000121 goals: '{mvn-goals}'
122 settings: '{mvn-settings}'
123 settings-type: cfp
124 global-settings: 'global-settings'
125 global-settings-type: cfp
126 - docker-login
127 - shell: '{script}'
128
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700129 publishers:
130 - infra-shiplogs:
131 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000132
lj1412f75ed992017-02-17 22:21:06 +0000133- job-template:
lj1412d0704842017-02-18 21:46:11 +0000134 # Job template for daily-release a submission. triggered on timer, does
135 # scm mvn with passed-in goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000136 #
137 # Required Variables:
138 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000139 # script: build script to execute
lj1412d0704842017-02-18 21:46:11 +0000140 # mvn-goals-versioning: space separated list of maven build goals
141 # (--version for no op,
142 # or versions:set versions:update-child-modules versions:commit)
143 # mvn-goals: space separated list of maven build goals (--version for
144 # noop, or clean deploy)
lj1412f75ed992017-02-17 22:21:06 +0000145 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
146
147 project-type: freestyle
148 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000149 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000150
151 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700152 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000153 build-days-to-keep: '{build-days-to-keep}'
154
155 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700156 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000157 project: '{project}'
158 branch: '{branch}'
159 refspec: 'refs/heads/{branch}'
160 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800161 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800162 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000163
164 scm:
165 - gerrit-trigger-scm:
166 refspec: ''
167 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500168 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +0000169
170 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700171 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000172 build-timeout: '{build-timeout}'
173
174 triggers:
175 # 11 AM UTC
176 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000177 - gerrit-trigger-release-manually:
178 server: '{server-name}'
179 project: '{project}'
180 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000181
182 builders:
183 - provide-maven-settings:
184 global-settings-file: 'global-settings'
185 settings-file: '{mvn-settings}'
186 - inject:
187 properties-file: version.properties
188 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800189 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000190 goals: '{mvn-goals-versioning}'
191 properties:
192 - 'newVersion=${{release_version}}'
193 settings: '{mvn-settings}'
194 settings-type: cfp
195 global-settings: 'global-settings'
196 global-settings-type: cfp
197
198 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800199 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000200 goals: '{mvn-goals}'
201 properties:
202 - '{maven-deploy-properties}'
203 settings: '{mvn-settings}'
204 settings-type: cfp
205 global-settings: 'global-settings'
206 global-settings-type: cfp
207 - docker-login
208 - shell: '{script}'
209
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700210 publishers:
211 - infra-shiplogs:
212 maven-version: '{maven-version}'
213
Carsten Lund01c060e2017-03-08 14:26:52 +0000214- job-template:
215 # Job template for daily-release a submission. triggered on timer, does
216 # scm mvn with passed-in goals, then run script.
217 # Version changed using include-update-pom-versions.sh script
218 #
219 # Required Variables:
220 # branch: git branch
221 # script: build script to execute
222 # mvn-goals: space separated list of maven build goals (--version for
223 # noop, or clean deploy)
224 name: '{project-name}-{stream}-daily-release-version2-scm-mvn-script'
225
226 project-type: freestyle
227 concurrent: true
228 node: 'ubuntu1604-docker-8c-8g'
229
230 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700231 - infra-properties:
Carsten Lund01c060e2017-03-08 14:26:52 +0000232 build-days-to-keep: '{build-days-to-keep}'
233
234 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700235 - infra-parameters:
Carsten Lund01c060e2017-03-08 14:26:52 +0000236 project: '{project}'
237 branch: '{branch}'
238 refspec: 'refs/heads/{branch}'
239 artifacts: '{archive-artifacts}'
240 - maven-exec:
241 maven-version: '{maven-version}'
242
243 scm:
244 - gerrit-trigger-scm:
245 refspec: ''
246 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500247 submodule-recursive: '{submodule-recursive}'
Carsten Lund01c060e2017-03-08 14:26:52 +0000248
249 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700250 - infra-wrappers:
Carsten Lund01c060e2017-03-08 14:26:52 +0000251 build-timeout: '{build-timeout}'
252
253 triggers:
254 # 11 AM UTC
255 - timed: 'H 11 * * *'
256 - gerrit-trigger-release-manually:
257 server: '{server-name}'
258 project: '{project}'
259 branch: '{branch}'
260
261 builders:
262 - provide-maven-settings:
263 global-settings-file: 'global-settings'
264 settings-file: '{mvn-settings}'
265
266 - inject:
267 properties-file: version.properties
268
269 - shell: !include-raw-escape: include-update-pom-versions.sh
270
271 - maven-target:
272 maven-version: '{maven-version}'
273 goals: '{mvn-goals}'
274 properties:
275 - '{maven-deploy-properties}'
276 settings: '{mvn-settings}'
277 settings-type: cfp
278 global-settings: 'global-settings'
279 global-settings-type: cfp
280 - docker-login
281 - shell: '{script}'
282
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700283 publishers:
284 - infra-shiplogs:
285 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000286
lj1412f75ed992017-02-17 22:21:06 +0000287- job-template:
lj1412d0704842017-02-18 21:46:11 +0000288 # Job template for verifying a submission. triggered on
289 # gerrit-trigger-patch-submitted,
lj1412f75ed992017-02-17 22:21:06 +0000290 # does scm 2 repos, mvn with passed-in goals, then run script
291 #
292 # Required Variables:
293 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000294 # script: build script to execute
295 # extra-project: extra gerrit project to checkout
296 # extra-refspec: refspec for the extra project
297 # extra-branch: branch to checkout for the extra project
298 # checkout-dir: directory to checkout the extra project to
299 # DO NOT SET THIS TO anything that translates to
300 # $WORKSPACE as it will destroy the initial
301 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000302 # mvn-goals: space separated list of maven build goals (e.g.
303 # clean, install etc, --version for noop)
lj1412f75ed992017-02-17 22:21:06 +0000304
305 name: '{project-name}-{stream}-verify-2scm-mvn-script'
306
307 project-type: freestyle
308 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000309 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000310
311 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700312 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000313 build-days-to-keep: '{build-days-to-keep}'
314
315 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700316 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000317 project: '{project}'
318 branch: '{branch}'
319 refspec: 'refs/heads/{branch}'
320 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800321 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800322 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000323
324 scm:
325 - gerrit-trigger-scm:
326 refspec: '$GERRIT_REFSPEC'
327 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500328 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +0000329 - git-extra-project:
330 project: '{extra-project}'
331 refspec: '{extra-refspec}'
332 branch: '{extra-branch}'
333 checkout-dir: '{checkout-dir}'
334
335 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700336 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000337 build-timeout: '{build-timeout}'
338
339 triggers:
340 - gerrit-trigger-patch-submitted:
341 server: '{server-name}'
342 project: '{project}'
343 branch: '{branch}'
344 files: '**'
345
346 builders:
347 - provide-maven-settings:
348 global-settings-file: 'global-settings'
349 settings-file: '{mvn-settings}'
350 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800351 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000352 goals: '{mvn-goals}'
353 settings: '{mvn-settings}'
354 settings-type: cfp
355 global-settings: 'global-settings'
356 global-settings-type: cfp
357 - docker-login
358 - shell: '{script}'
359
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700360 publishers:
361 - infra-shiplogs:
362 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000363
lj1412f75ed992017-02-17 22:21:06 +0000364- job-template:
lj1412d0704842017-02-18 21:46:11 +0000365 # Job template for merged submission. triggered on
366 # gerrit-trigger-patch-merged,does scm of 2 repos, mvn with passed in
367 # goals, then run script
lj1412f75ed992017-02-17 22:21:06 +0000368 #
369 # Required Variables:
370 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000371 # script: build script to execute
372 # extra-project: extra gerrit project to checkout
373 # extra-refspec: refspec for the extra project
374 # extra-branch: branch to checkout for the extra project
375 # checkout-dir: directory to checkout the extra project to
376 # DO NOT SET THIS TO anything that translates to
377 # $WORKSPACE as it will destroy the initial
378 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000379 # mvn-goals: space separated list of maven build goals (--version
380 # for noop, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000381
382 name: '{project-name}-{stream}-merge-2scm-mvn-script'
383
384 project-type: freestyle
385 concurrent: true
lj1412d0704842017-02-18 21:46:11 +0000386 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000387
388 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700389 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000390 build-days-to-keep: '{build-days-to-keep}'
391
392 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700393 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000394 project: '{project}'
395 branch: '{branch}'
396 refspec: 'refs/heads/{branch}'
397 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800398 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800399 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000400
401 scm:
402 - gerrit-trigger-scm:
403 refspec: ''
404 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500405 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +0000406 - git-extra-project:
407 project: '{extra-project}'
408 refspec: '{extra-refspec}'
409 branch: '{extra-branch}'
410 checkout-dir: '{checkout-dir}'
411
412 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700413 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000414 build-timeout: '{build-timeout}'
415
416 triggers:
417 - gerrit-trigger-patch-merged:
418 server: '{server-name}'
419 project: '{project}'
420 branch: '{branch}'
421 files: '**'
422
423 builders:
424 - provide-maven-settings:
425 global-settings-file: 'global-settings'
426 settings-file: '{mvn-settings}'
427 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800428 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000429 goals: '{mvn-goals}'
430 settings: '{mvn-settings}'
431 settings-type: cfp
432 global-settings: 'global-settings'
433 global-settings-type: cfp
434 - docker-login
435 - shell: '{script}'
436
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700437 publishers:
438 - infra-shiplogs:
439 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000440
lj1412f75ed992017-02-17 22:21:06 +0000441- job-template:
lj1412d0704842017-02-18 21:46:11 +0000442 # Job template for merged submission. triggered on
443 # gerrit-trigger-patch-merged, does scm x2, mvn with passed-in goals,
444 # then run script
lj1412f75ed992017-02-17 22:21:06 +0000445 #
446 # Required Variables:
447 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +0000448 # script: build script to execute
449 # extra-project: extra gerrit project to checkout
450 # extra-refspec: refspec for the extra project
451 # extra-branch: branch to checkout for the extra project
452 # checkout-dir: directory to checkout the extra project to
453 # DO NOT SET THIS TO anything that translates to
454 # $WORKSPACE as it will destroy the initial
455 # project checkout
lj1412d0704842017-02-18 21:46:11 +0000456 # mvn-goals: space separated list of maven build goals (--version
457 # for noop, clean deploy for mvn project)
458 # mvn-goals-versioning: space separated list of maven build goals
459 # (--version for no op, clean deploy for mvn project)
lj1412f75ed992017-02-17 22:21:06 +0000460
461 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
462
463 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +0000464 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +0000465
466 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700467 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +0000468 build-days-to-keep: '{build-days-to-keep}'
469
470 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700471 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +0000472 project: '{project}'
473 branch: '{branch}'
474 refspec: 'refs/heads/{branch}'
475 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800476 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800477 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000478
479 scm:
480 - gerrit-trigger-scm:
481 refspec: ''
482 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500483 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +0000484 - git-extra-project:
485 project: '{extra-project}'
486 refspec: '{extra-refspec}'
487 branch: '{extra-branch}'
488 checkout-dir: '{checkout-dir}'
489
490 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700491 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +0000492 build-timeout: '{build-timeout}'
493
494 triggers:
495 - timed: 'H 11 * * *'
Lisa Revelc45cfbf2017-02-23 17:31:48 +0000496 - gerrit-trigger-release-manually:
497 server: '{server-name}'
498 project: '{project}'
499 branch: '{branch}'
lj1412f75ed992017-02-17 22:21:06 +0000500
501 builders:
502 - provide-maven-settings:
503 global-settings-file: 'global-settings'
504 settings-file: '{mvn-settings}'
505 - inject:
506 properties-file: version.properties
507 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800508 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000509 goals: '{mvn-goals-versioning}'
510 properties:
511 - 'newVersion=${{release_version}}'
512 settings: '{mvn-settings}'
513 settings-type: cfp
514 global-settings: 'global-settings'
515 global-settings-type: cfp
516
517 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800518 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000519 goals: '{mvn-goals}'
520 settings: '{mvn-settings}'
521 settings-type: cfp
522 global-settings: 'global-settings'
523 global-settings-type: cfp
524 - docker-login
525 - shell: '{script}'
526
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700527 publishers:
528 - infra-shiplogs:
529 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000530
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800531- job-template:
532 # Job template for basic scm and script trigger
533 #
534 # Required Variables:
535 # branch: git branch
536 # build-node: what build node to run on
537 # script: build script to execute
538
539 name: '{project-name}-{stream}-verify-script'
540
541 project-type: freestyle
542 concurrent: true
543 node: '{build-node}'
544
545 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700546 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800547 build-days-to-keep: '{build-days-to-keep}'
548
549 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700550 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800551 project: '{project}'
552 branch: '{branch}'
553 refspec: 'refs/heads/{branch}'
554 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800555 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800556 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800557
558 scm:
559 - gerrit-trigger-scm:
560 refspec: '$GERRIT_REFSPEC'
561 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500562 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800563
564 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700565 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800566 build-timeout: '{build-timeout}'
567
568 triggers:
569 - gerrit-trigger-patch-submitted:
570 server: '{server-name}'
571 project: '{project}'
572 branch: '{branch}'
573 files: '**'
574
575 builders:
576 - provide-maven-settings:
577 global-settings-file: 'global-settings'
578 settings-file: '{mvn-settings}'
579 # make sure maven gets installed / setup
580 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800581 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800582 goals: '--version'
583 settings: '{mvn-settings}'
584 settings-type: cfp
585 global-settings: 'global-settings'
586 global-settings-type: cfp
587 - shell: '{script}'
588
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700589 publishers:
590 - infra-shiplogs:
591 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800592
593- job-template:
594 # Job template for 2 scm and script trigger
595 #
596 # Required Variables:
597 # branch: git branch
598 # build-node: what build node to run on
599 # script: build script to execute
600 # extra-project: extra gerrit project to checkout
601 # extra-refspec: refspec for the extra project
602 # extra-branch: branch to checkout for the extra project
603 # checkout-dir: directory to checkout the extra project to
604 # DO NOT SET THIS TO anything that translates to
605 # $WORKSPACE as it will destroy the initial
606 # project checkout
607
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -0800608 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800609
610 project-type: freestyle
611 concurrent: true
612 node: '{build-node}'
613
614 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700615 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800616 build-days-to-keep: '{build-days-to-keep}'
617
618 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700619 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800620 project: '{project}'
621 branch: '{branch}'
622 refspec: 'refs/heads/{branch}'
623 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800624 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800625 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800626
627 scm:
628 - gerrit-trigger-scm:
629 refspec: '$GERRIT_REFSPEC'
630 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500631 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800632 - git-extra-project:
633 project: '{extra-project}'
634 refspec: '{extra-refspec}'
635 branch: '{extra-branch}'
636 checkout-dir: '{checkout-dir}'
637
638 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700639 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800640 build-timeout: '{build-timeout}'
641
642 triggers:
643 - gerrit-trigger-patch-submitted:
644 server: '{server-name}'
645 project: '{project}'
646 branch: '{branch}'
647 files: '**'
648
649 builders:
650 - provide-maven-settings:
651 global-settings-file: 'global-settings'
652 settings-file: '{mvn-settings}'
653 # make sure maven gets installed / setup
654 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800655 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800656 goals: '--version'
657 settings: '{mvn-settings}'
658 settings-type: cfp
659 global-settings: 'global-settings'
660 global-settings-type: cfp
661 - shell: '{script}'
662
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700663 publishers:
664 - infra-shiplogs:
665 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500666
667
668- job-template:
669 # Job template for 3 scm and script trigger
670 #
671 # Required Variables:
672 # branch: git branch
673 # build-node: what build node to run on
674 # script: build script to execute
675 # extra-project1: extra gerrit project to checkout
676 # extra-refspec1: refspec for the extra project
677 # extra-branch1: branch to checkout for the extra project
678 # checkout-dir1: directory to checkout the extra project to
679 # DO NOT SET THIS TO anything that translates to
680 # $WORKSPACE as it will destroy the initial
681 # project checkout
682 # extra-project2: extra gerrit project to checkout
683 # extra-refspec2: refspec for the extra project
684 # extra-branch2: branch to checkout for the extra project
685 # checkout-dir2: directory to checkout the extra project to
686 # DO NOT SET THIS TO anything that translates to
687 # $WORKSPACE as it will destroy the initial
688 # project checkout
689 name: '{project-name}-{stream}-three-scm-verify-script'
690
691 project-type: freestyle
692 concurrent: true
693 node: '{build-node}'
694
695 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700696 - infra-properties:
talasila91a608b2017-02-16 12:46:32 -0500697 build-days-to-keep: '{build-days-to-keep}'
698
699 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700700 - infra-parameters:
talasila91a608b2017-02-16 12:46:32 -0500701 project: '{project}'
702 branch: '{branch}'
703 refspec: 'refs/heads/{branch}'
704 artifacts: '{archive-artifacts}'
talasila596787c2017-02-19 20:47:56 -0500705 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800706 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500707 scm:
708 - gerrit-trigger-scm:
709 refspec: '$GERRIT_REFSPEC'
710 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500711 submodule-recursive: '{submodule-recursive}'
talasila91a608b2017-02-16 12:46:32 -0500712 - git-extra-project:
713 project: '{extra-project1}'
714 refspec: '{extra-refspec1}'
715 branch: '{extra-branch1}'
716 checkout-dir: '{checkout-dir1}'
717 - git-extra-project:
718 project: '{extra-project2}'
719 refspec: '{extra-refspec2}'
720 branch: '{extra-branch2}'
721 checkout-dir: '{checkout-dir2}'
722
723 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700724 - infra-wrappers:
talasila91a608b2017-02-16 12:46:32 -0500725 build-timeout: '{build-timeout}'
726
727 triggers:
728 - gerrit-trigger-patch-submitted:
729 server: '{server-name}'
730 project: '{project}'
731 branch: '{branch}'
732 files: '**'
733
734 builders:
735 - provide-maven-settings:
736 global-settings-file: 'global-settings'
737 settings-file: '{mvn-settings}'
738 # make sure maven gets installed / setup
739 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800740 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500741 goals: '--version'
742 settings: '{mvn-settings}'
743 settings-type: cfp
744 global-settings: 'global-settings'
745 global-settings-type: cfp
746 - shell: '{script}'
747
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700748 publishers:
749 - infra-shiplogs:
750 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500751
752# vim: sw=2 ts=2 sts=2 et :
753
754- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400755 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500756 #
757 # Required Variables:
758 # branch: git branch
759 # build-node: what build node to run on
760 # script: build script to execute
761
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400762 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500763
764 project-type: freestyle
765 concurrent: true
766 node: '{build-node}'
767
768 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700769 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500770 build-days-to-keep: '{build-days-to-keep}'
771
772 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700773 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500774 project: '{project}'
775 branch: '{branch}'
776 refspec: 'refs/heads/{branch}'
777 artifacts: '{archive-artifacts}'
778 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800779 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500780
781 scm:
782 - gerrit-trigger-scm:
783 refspec: ''
784 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500785 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500786 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400787 project: '{extra-project}'
788 refspec: '{extra-refspec}'
789 branch: '{extra-branch}'
790 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500791
792 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700793 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500794 build-timeout: '{build-timeout}'
795
796 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500797 - gerrit-trigger-patch-merged:
798 server: '{server-name}'
799 project: '{project}'
800 branch: '{branch}'
801 files: '**'
802
803 builders:
804 - provide-maven-settings:
805 global-settings-file: 'global-settings'
806 settings-file: '{mvn-settings}'
807 - docker-login
808 # make sure maven gets installed / setup
809 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800810 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500811 goals: '--version'
812 settings: '{mvn-settings}'
813 settings-type: cfp
814 global-settings: 'global-settings'
815 global-settings-type: cfp
816 - shell: '{script}'
817
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700818 publishers:
819 - infra-shiplogs:
820 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500821
822- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400823 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500824 #
825 # Required Variables:
826 # branch: git branch
827 # build-node: what build node to run on
828 # script: build script to execute
829
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400830 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500831
832 project-type: freestyle
833 concurrent: true
834 node: '{build-node}'
835
836 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700837 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500838 build-days-to-keep: '{build-days-to-keep}'
839
840 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700841 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500842 project: '{project}'
843 branch: '{branch}'
844 refspec: 'refs/heads/{branch}'
845 artifacts: '{archive-artifacts}'
846 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800847 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500848
849 scm:
850 - gerrit-trigger-scm:
851 refspec: ''
852 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500853 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500854 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400855 project: '{extra-project}'
856 refspec: '{extra-refspec}'
857 branch: '{extra-branch}'
858 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500859
860 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700861 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500862 build-timeout: '{build-timeout}'
863
864 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500865 - gerrit-trigger-release-manually:
866 server: '{server-name}'
867 project: '{project}'
868 branch: '{branch}'
869
870 builders:
871 - provide-maven-settings:
872 global-settings-file: 'global-settings'
873 settings-file: '{mvn-settings}'
874 - docker-login
875 # make sure maven gets installed / setup
876 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800877 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500878 goals: '--version'
879 settings: '{mvn-settings}'
880 settings-type: cfp
881 global-settings: 'global-settings'
882 global-settings-type: cfp
883 - shell: '{script}'
884
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700885 publishers:
886 - infra-shiplogs:
887 maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800888
889- job-template:
890 # 1. PULL the desired image
891 # 2. TAG it to the desired release name
892 # 3. PUSH the newly tagged image on release repo
893
894 name: '{project-name}-docker-image-blessing'
895
896 project-type: freestyle
897 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500898 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800899
900 parameters:
901 - string:
JulienBed45ff952017-03-28 02:54:51 -0700902 name: X
903 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
904 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800905 - string:
JulienBed45ff952017-03-28 02:54:51 -0700906 name: Y
907 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
908 Example : 2"
909 - string:
910 name: Z
911 description: "z VERSION of the RELEASE VERSION
912 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800913 - string:
914 name: PROJECT
915 default: '{project}'
916
917 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700918 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800919 build-days-to-keep: '{build-days-to-keep}'
920
921 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700922 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800923 build-timeout: '{build-timeout}'
924
925 builders:
926 - provide-maven-settings:
927 global-settings-file: 'global-settings'
928 settings-file: '{mvn-settings}'
929 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500930 - shell: !include-raw: include-docker-blessing.sh
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700931
932 publishers:
933 - infra-shiplogs:
934 maven-version: '{maven-version}'