2 # vim: sw=2 ts=2 sts=2 et :
6 # Job template for verify a submission. triggered on gerrit-trigger-patch-submitted, does
7 # scm, mvn with passed in goals, then run script
11 # build-node: what build node to run on
12 # script: build script to execute
13 # mvn-settings: settings file for this specific job
14 # mvn-goals: space separated list of maven build goals (e.g. clean, install
15 # etc, --version for noop)
16 name: '{project-name}-{stream}-verify-scm-mvn-script'
18 project-type: freestyle
23 - ecomp-infra-properties:
24 build-days-to-keep: '{build-days-to-keep}'
27 - ecomp-infra-parameters:
30 refspec: 'refs/heads/{branch}'
31 artifacts: '{archive-artifacts}'
35 refspec: '$GERRIT_REFSPEC'
36 choosing-strategy: 'gerrit'
39 - ecomp-infra-wrappers:
40 build-timeout: '{build-timeout}'
43 - gerrit-trigger-patch-submitted:
44 server: '{server-name}'
50 - provide-maven-settings:
51 global-settings-file: 'global-settings'
52 settings-file: '{mvn-settings}'
54 maven-version: 'mvn33'
56 settings: '{mvn-settings}'
58 global-settings: 'global-settings'
59 global-settings-type: cfp
66 # Job template for merging a submission. triggered on gerrit-trigger-patch-merged, does
67 # scm, mvn with passed-in goals, then run script
71 # build-node: what build node to run on
72 # script: build script to execute
73 # mvn-settings: settings file for this specific job
74 # mvn-goals: space separated list of maven build goals (--version for noop,
75 # clean deploy for deploy [version must be snapshot])
76 name: '{project-name}-{stream}-merge-scm-mvn-script'
78 project-type: freestyle
82 - ecomp-infra-properties:
83 build-days-to-keep: '{build-days-to-keep}'
86 - ecomp-infra-parameters:
89 refspec: 'refs/heads/{branch}'
90 artifacts: '{archive-artifacts}'
95 choosing-strategy: 'default'
98 - ecomp-infra-wrappers:
99 build-timeout: '{build-timeout}'
102 - gerrit-trigger-patch-merged:
103 server: '{server-name}'
109 - provide-maven-settings:
110 global-settings-file: 'global-settings'
111 settings-file: '{mvn-settings}'
113 maven-version: 'mvn33'
115 settings: '{mvn-settings}'
117 global-settings: 'global-settings'
118 global-settings-type: cfp
126 # Job template for daily-release a submission. triggered on timer, does scm,
127 # mvn with passed-in goals, then run script
129 # Required Variables:
131 # build-node: what build node to run on
132 # script: build script to execute
133 # mvn-goals-versioning: space separated list of maven build goals (--version for no op,
134 # or versions:set versions:update-child-modules versions:commit or --version)
135 # mvn-goals: space separated list of maven build goals (--version for noop, or clean deploy)
136 name: '{project-name}-{stream}-daily-release-scm-mvn-script'
138 project-type: freestyle
143 - ecomp-infra-properties:
144 build-days-to-keep: '{build-days-to-keep}'
147 - ecomp-infra-parameters:
150 refspec: 'refs/heads/{branch}'
151 artifacts: '{archive-artifacts}'
154 - gerrit-trigger-scm:
156 choosing-strategy: 'default'
159 - ecomp-infra-wrappers:
160 build-timeout: '{build-timeout}'
164 - timed: 'H 11 * * *'
167 - provide-maven-settings:
168 global-settings-file: 'global-settings'
169 settings-file: '{mvn-settings}'
171 properties-file: version.properties
173 maven-version: 'mvn33'
174 goals: '{mvn-goals-versioning}'
176 - 'newVersion=${{release_version}}'
177 settings: '{mvn-settings}'
179 global-settings: 'global-settings'
180 global-settings-type: cfp
183 maven-version: 'mvn33'
186 - '{maven-deploy-properties}'
187 settings: '{mvn-settings}'
189 global-settings: 'global-settings'
190 global-settings-type: cfp
198 # Job template for verifying a submission. triggered on gerrit-trigger-patch-submitted,
199 # does scm 2 repos, mvn with passed-in goals, then run script
201 # Required Variables:
203 # build-node: what build node to run on
204 # script: build script to execute
205 # extra-project: extra gerrit project to checkout
206 # extra-refspec: refspec for the extra project
207 # extra-branch: branch to checkout for the extra project
208 # checkout-dir: directory to checkout the extra project to
209 # DO NOT SET THIS TO anything that translates to
210 # $WORKSPACE as it will destroy the initial
212 # mvn-goals: space separated list of maven build goals (e.g. clean, install etc,
213 # --version for noop)
215 name: '{project-name}-{stream}-verify-2scm-mvn-script'
217 project-type: freestyle
222 - ecomp-infra-properties:
223 build-days-to-keep: '{build-days-to-keep}'
226 - ecomp-infra-parameters:
229 refspec: 'refs/heads/{branch}'
230 artifacts: '{archive-artifacts}'
233 - gerrit-trigger-scm:
234 refspec: '$GERRIT_REFSPEC'
235 choosing-strategy: 'gerrit'
237 project: '{extra-project}'
238 refspec: '{extra-refspec}'
239 branch: '{extra-branch}'
240 checkout-dir: '{checkout-dir}'
243 - ecomp-infra-wrappers:
244 build-timeout: '{build-timeout}'
247 - gerrit-trigger-patch-submitted:
248 server: '{server-name}'
254 - provide-maven-settings:
255 global-settings-file: 'global-settings'
256 settings-file: '{mvn-settings}'
258 maven-version: 'mvn33'
260 settings: '{mvn-settings}'
262 global-settings: 'global-settings'
263 global-settings-type: cfp
270 # Job template for merged submission. triggered on gerrit-trigger-patch-merged,
271 # does scm of 2 repos, mvn with passed in goals, then run script
273 # Required Variables:
275 # build-node: what build node to run on
276 # script: build script to execute
277 # extra-project: extra gerrit project to checkout
278 # extra-refspec: refspec for the extra project
279 # extra-branch: branch to checkout for the extra project
280 # checkout-dir: directory to checkout the extra project to
281 # DO NOT SET THIS TO anything that translates to
282 # $WORKSPACE as it will destroy the initial
284 # mvn-goals: space separated list of maven build goals (--version for no op,
285 # clean deploy for mvn project)
287 name: '{project-name}-{stream}-merge-2scm-mvn-script'
289 project-type: freestyle
294 - ecomp-infra-properties:
295 build-days-to-keep: '{build-days-to-keep}'
298 - ecomp-infra-parameters:
301 refspec: 'refs/heads/{branch}'
302 artifacts: '{archive-artifacts}'
305 - gerrit-trigger-scm:
307 choosing-strategy: 'default'
309 project: '{extra-project}'
310 refspec: '{extra-refspec}'
311 branch: '{extra-branch}'
312 checkout-dir: '{checkout-dir}'
315 - ecomp-infra-wrappers:
316 build-timeout: '{build-timeout}'
319 - gerrit-trigger-patch-merged:
320 server: '{server-name}'
326 - provide-maven-settings:
327 global-settings-file: 'global-settings'
328 settings-file: '{mvn-settings}'
330 maven-version: 'mvn33'
332 settings: '{mvn-settings}'
334 global-settings: 'global-settings'
335 global-settings-type: cfp
342 # Job template for merged submission. triggered on gerrit-trigger-patch-merged,
343 # does scm x2, mvn with passed-in goals, then run script
345 # Required Variables:
347 # build-node: what build node to run on
348 # script: build script to execute
349 # extra-project: extra gerrit project to checkout
350 # extra-refspec: refspec for the extra project
351 # extra-branch: branch to checkout for the extra project
352 # checkout-dir: directory to checkout the extra project to
353 # DO NOT SET THIS TO anything that translates to
354 # $WORKSPACE as it will destroy the initial
356 # mvn-goals: space separated list of maven build goals (--version for no op,
357 # clean deploy for mvn project)
358 # mvn-goals-versioning: space separated list of maven build goals (--version for no op,
359 # clean deploy for mvn project)
361 name: '{project-name}-{stream}-daily-release-2scm-mvn-script'
363 project-type: freestyle
368 - ecomp-infra-properties:
369 build-days-to-keep: '{build-days-to-keep}'
372 - ecomp-infra-parameters:
375 refspec: 'refs/heads/{branch}'
376 artifacts: '{archive-artifacts}'
379 - gerrit-trigger-scm:
381 choosing-strategy: 'default'
383 project: '{extra-project}'
384 refspec: '{extra-refspec}'
385 branch: '{extra-branch}'
386 checkout-dir: '{checkout-dir}'
389 - ecomp-infra-wrappers:
390 build-timeout: '{build-timeout}'
393 - timed: 'H 11 * * *'
396 - provide-maven-settings:
397 global-settings-file: 'global-settings'
398 settings-file: '{mvn-settings}'
400 properties-file: version.properties
402 maven-version: 'mvn33'
403 goals: '{mvn-goals-versioning}'
405 - 'newVersion=${{release_version}}'
406 settings: '{mvn-settings}'
408 global-settings: 'global-settings'
409 global-settings-type: cfp
412 maven-version: 'mvn33'
414 settings: '{mvn-settings}'
416 global-settings: 'global-settings'
417 global-settings-type: cfp
426 # Job template for basic scm and script trigger
428 # Required Variables:
430 # build-node: what build node to run on
431 # script: build script to execute
433 name: '{project-name}-{stream}-verify-script'
435 project-type: freestyle
440 - ecomp-infra-properties:
441 build-days-to-keep: '{build-days-to-keep}'
444 - ecomp-infra-parameters:
447 refspec: 'refs/heads/{branch}'
448 artifacts: '{archive-artifacts}'
451 - gerrit-trigger-scm:
452 refspec: '$GERRIT_REFSPEC'
453 choosing-strategy: 'gerrit'
456 - ecomp-infra-wrappers:
457 build-timeout: '{build-timeout}'
460 - gerrit-trigger-patch-submitted:
461 server: '{server-name}'
467 - provide-maven-settings:
468 global-settings-file: 'global-settings'
469 settings-file: '{mvn-settings}'
470 # make sure maven gets installed / setup
472 maven-version: 'mvn33'
474 settings: '{mvn-settings}'
476 global-settings: 'global-settings'
477 global-settings-type: cfp
481 # - ecomp-infra-shiplogs:
482 # maven-version: 'mvn33'
485 # Job template for 2 scm and script trigger
487 # Required Variables:
489 # build-node: what build node to run on
490 # script: build script to execute
491 # extra-project: extra gerrit project to checkout
492 # extra-refspec: refspec for the extra project
493 # extra-branch: branch to checkout for the extra project
494 # checkout-dir: directory to checkout the extra project to
495 # DO NOT SET THIS TO anything that translates to
496 # $WORKSPACE as it will destroy the initial
499 name: '{project-name}-{stream}-two-scm-verify-script'
501 project-type: freestyle
506 - ecomp-infra-properties:
507 build-days-to-keep: '{build-days-to-keep}'
510 - ecomp-infra-parameters:
513 refspec: 'refs/heads/{branch}'
514 artifacts: '{archive-artifacts}'
517 - gerrit-trigger-scm:
518 refspec: '$GERRIT_REFSPEC'
519 choosing-strategy: 'gerrit'
521 project: '{extra-project}'
522 refspec: '{extra-refspec}'
523 branch: '{extra-branch}'
524 checkout-dir: '{checkout-dir}'
527 - ecomp-infra-wrappers:
528 build-timeout: '{build-timeout}'
531 - gerrit-trigger-patch-submitted:
532 server: '{server-name}'
538 - provide-maven-settings:
539 global-settings-file: 'global-settings'
540 settings-file: '{mvn-settings}'
541 # make sure maven gets installed / setup
543 maven-version: 'mvn33'
545 settings: '{mvn-settings}'
547 global-settings: 'global-settings'
548 global-settings-type: cfp
552 # - ecomp-infra-shiplogs:
553 # maven-version: 'mvn33'
557 # Job template for 3 scm and script trigger
559 # Required Variables:
561 # build-node: what build node to run on
562 # script: build script to execute
563 # extra-project1: extra gerrit project to checkout
564 # extra-refspec1: refspec for the extra project
565 # extra-branch1: branch to checkout for the extra project
566 # checkout-dir1: directory to checkout the extra project to
567 # DO NOT SET THIS TO anything that translates to
568 # $WORKSPACE as it will destroy the initial
570 # extra-project2: extra gerrit project to checkout
571 # extra-refspec2: refspec for the extra project
572 # extra-branch2: branch to checkout for the extra project
573 # checkout-dir2: directory to checkout the extra project to
574 # DO NOT SET THIS TO anything that translates to
575 # $WORKSPACE as it will destroy the initial
577 name: '{project-name}-{stream}-three-scm-verify-script'
579 project-type: freestyle
584 - ecomp-infra-properties:
585 build-days-to-keep: '{build-days-to-keep}'
588 - ecomp-infra-parameters:
591 refspec: 'refs/heads/{branch}'
592 artifacts: '{archive-artifacts}'
595 - gerrit-trigger-scm:
596 refspec: '$GERRIT_REFSPEC'
597 choosing-strategy: 'gerrit'
599 project: '{extra-project1}'
600 refspec: '{extra-refspec1}'
601 branch: '{extra-branch1}'
602 checkout-dir: '{checkout-dir1}'
604 project: '{extra-project2}'
605 refspec: '{extra-refspec2}'
606 branch: '{extra-branch2}'
607 checkout-dir: '{checkout-dir2}'
610 - ecomp-infra-wrappers:
611 build-timeout: '{build-timeout}'
614 - gerrit-trigger-patch-submitted:
615 server: '{server-name}'
621 - provide-maven-settings:
622 global-settings-file: 'global-settings'
623 settings-file: '{mvn-settings}'
624 # make sure maven gets installed / setup
626 maven-version: 'mvn33'
628 settings: '{mvn-settings}'
630 global-settings: 'global-settings'
631 global-settings-type: cfp
635 # - ecomp-infra-shiplogs:
636 # maven-version: 'mvn33'