1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
5 # ODL Releng build templates
9 - 'faas-verify-{stream}'
10 - 'faas-merge-{stream}'
11 - 'faas-periodic-{stream}'
12 - 'faas-distribution-{stream}'
13 - 'faas-distribution-check-{stream}'
14 - 'faas-integration-{stream}'
17 - 'faas-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'faas-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: 'odl-global-settings'
107 settings-file: 'faas-settings'
109 maven-version: '{mvn33}'
111 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
113 - '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: 'faas-settings'
116 global-settings: 'odl-global-settings'
117 global-settings-type: cfp
121 artifacts: '**/target/surefire-reports/*-output.txt, '
123 - email-notification:
124 email-prefix: '[faas]'
127 maven-version: '{mvn33}'
130 name: 'faas-merge-{stream}'
132 # Job template for ODL merge jobs
134 # The purpose of this job template is to setup a ODL merge job
135 # and deploy artifacts to Nexus.
137 # Required Variables:
138 # stream: release stream (eg. stable-lithium or beryllium)
139 # branch: git branch (eg. stable/lithium or master)
148 artifactDaysToKeep: '{build-artifact-days-to-keep}'
149 artifactNumToKeep: '{build-artifact-num-to-keep}'
157 refspec: 'refs/heads/{branch}'
160 - gerrit-trigger-scm:
161 credentials-id: '{ssh-credentials}'
163 choosing-strategy: 'default'
167 - ssh-agent-credentials:
169 - '{ssh-credentials}'
173 - gerrit-trigger-patch-merged:
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: 'odl-global-settings'
181 settings-file: 'faas-settings'
184 maven-name: '{mvn33}'
186 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
187 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
188 settings: 'faas-settings'
190 global-settings: 'odl-global-settings'
191 global-settings-type: cfp
192 post-step-run-condition: UNSTABLE
196 condition-kind: file-exists
197 condition-filename: deploy-site.xml
198 condition-basedir: workspace
200 # The strategy here is intentional to run Maven site:deploy twice
201 # once using regular pom.xml to produce a staged-site which is
202 # then used by deploy-site.xml to push to Nexus. This is a
203 # workaround to Maven Site's default linking code which creates
204 # incorrect URLs for sites due to auto-detection assuming your
205 # project is configured in a certain way which ODL is not.
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -V -B -Dstream={stream}'
213 settings: 'faas-settings'
215 global-settings: 'odl-global-settings'
216 global-settings-type: cfp
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -V -B -Dstream={stream}'
223 settings: 'faas-settings'
225 global-settings: 'odl-global-settings'
226 global-settings-type: cfp
233 artifacts: '**/target/surefire-reports/*-output.txt, '
234 - email-notification:
235 email-prefix: '[faas]'
239 deploy-unstable: false
242 maven-version: '{mvn33}'
245 name: 'faas-periodic-{stream}'
248 # Job template for periodic builders
250 # The purpose of this job template is to setup a periodic
253 # Required Variables:
254 # stream: release stream (eg. stable-lithium or beryllium)
255 # branch: git branch (eg. stable/lithium or master)
264 artifactDaysToKeep: '{build-artifact-days-to-keep}'
265 artifactNumToKeep: '{build-artifact-num-to-keep}'
273 credentials-id: '{ssh-credentials}'
279 - ssh-agent-credentials:
281 - '{ssh-credentials}'
287 - jacoco-nojava-workaround
288 - provide-maven-settings:
289 global-settings-file: 'odl-global-settings'
290 settings-file: 'faas-settings'
293 maven-name: '{mvn33}'
295 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
296 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
297 settings: 'faas-settings'
299 global-settings: 'odl-global-settings'
300 global-settings-type: cfp
306 - email-notification:
307 email-prefix: '[faas]'
310 maven-version: '{mvn33}'
313 name: 'faas-distribution-{stream}'
315 # Required variables:
316 # stream: release stream (eg. stable-lithium or beryllium)
317 # branch: git branch (eg. stable/lithium or master)
324 daysToKeep: '{build-days-to-keep}'
325 numToKeep: '{build-num-to-keep}'
326 artifactDaysToKeep: '{build-artifact-days-to-keep}'
327 artifactNumToKeep: '{build-artifact-num-to-keep}'
331 project: 'integration/distribution'
335 credentials-id: '{ssh-credentials}'
341 - ssh-agent-credentials:
343 - '{ssh-credentials}'
347 jobs: '{project}-merge-{stream}'
351 - provide-maven-settings:
352 global-settings-file: 'odl-global-settings'
353 settings-file: 'faas-settings'
356 maven-name: '{mvn33}'
358 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
359 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
360 settings: 'integration-distribution-settings'
362 global-settings: 'odl-global-settings'
363 global-settings-type: cfp
366 - email-notification:
367 email-prefix: '[{project}]'
371 deploy-unstable: false
373 maven-version: '{mvn33}'
375 # Template: integration-patch-distribution-{stream}
376 # Goal: Build a patch and make sure the distribution can deploy with this change
377 # Operation: This job template builds a patch, creates a distribution containing
378 # the patch, and triggers the distribution deploy test
381 name: 'faas-distribution-check-{stream}'
382 disabled: '{obj:disable_distribution_check}'
390 daysToKeep: '{build-days-to-keep}'
391 numToKeep: '{build-num-to-keep}'
392 artifactDaysToKeep: '{build-artifact-days-to-keep}'
393 artifactNumToKeep: '{build-artifact-num-to-keep}'
399 refspec: 'refs/heads/{branch}'
402 - integration-distribution-git-url
405 - integration-gerrit-scm:
406 credentials-id: '{ssh-credentials}'
407 basedir: '$GERRIT_PROJECT'
408 refspec: '$GERRIT_REFSPEC'
410 - integration-distribution-scm:
411 credentials-id: '{ssh-credentials}'
416 - ssh-agent-credentials:
418 - '{ssh-credentials}'
422 server-name: 'OpenDaylight'
424 - patchset-created-event:
425 exclude-drafts: 'true'
426 exclude-trivial-rebase: 'false'
427 exclude-no-code-change: 'true'
428 - draft-published-event
429 - comment-added-contains-event:
430 comment-contains-value: 'test-distribution'
431 - comment-added-contains-event:
432 comment-contains-value: 'reverify'
433 - comment-added-contains-event:
434 comment-contains-value: 'recheck'
436 - project-compare-type: 'ANT'
437 project-pattern: '{name}'
439 - branch-compare-type: 'ANT'
440 branch-pattern: '**/{branch}'
449 maven-version: '{mvn33}'
450 pom: '$GERRIT_PROJECT/pom.xml'
451 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
453 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
454 settings: 'faas-settings'
456 global-settings: 'odl-global-settings'
457 global-settings-type: cfp
460 maven-name: '{mvn33}'
461 root-pom: 'distribution/pom.xml'
462 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
463 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
464 settings: 'faas-settings'
466 global-settings: 'odl-global-settings'
467 global-settings-type: cfp
468 ignore-upstream-changes: true
469 post-step-run-condition: 'SUCCESS'
472 - integration-distribution-check
476 artifacts: 'karaf.log'
478 artifacts: 'karaf_console.log'
479 - email-notification:
480 email-prefix: '[faas]'
482 maven-version: '{mvn33}'
485 name: 'faas-integration-{stream}'
488 # Job template for ODL integration verify jobs
490 # This is similar to a normal verify job, but it runs
491 # when a project that's a dependency of your project
492 # is successfully built.
494 # Required Variables:
495 # stream: release stream (eg. stable-lithium or beryllium)
496 # branch: git branch (eg. stable/lithium or master)
503 daysToKeep: '{build-days-to-keep}'
504 numToKeep: '{build-num-to-keep}'
505 artifactDaysToKeep: '{build-artifact-days-to-keep}'
506 artifactNumToKeep: '{build-artifact-num-to-keep}'
514 credentials-id: '{ssh-credentials}'
520 - ssh-agent-credentials:
522 - '{ssh-credentials}'
526 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
530 - jacoco-nojava-workaround
531 - provide-maven-settings:
532 global-settings-file: 'odl-global-settings'
533 settings-file: 'faas-settings'
536 maven-name: '{mvn33}'
538 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
539 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
540 settings: 'faas-settings'
542 global-settings: 'odl-global-settings'
543 global-settings-type: cfp
549 - email-notification:
550 email-prefix: '[faas] [controller] [yangtools] [odlparent]'
553 maven-version: '{mvn33}'
566 artifactDaysToKeep: '1'
567 artifactNumToKeep: '1'
575 credentials-id: '{ssh-credentials}'
581 - ssh-agent-credentials:
583 - '{ssh-credentials}'
587 - gerrit-trigger-patch-sonar:
591 - jacoco-nojava-workaround
592 - provide-maven-settings:
593 global-settings-file: 'odl-global-settings'
594 settings-file: 'faas-settings'
597 maven-name: '{mvn33}'
599 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
600 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
601 settings: 'faas-settings'
603 global-settings: 'odl-global-settings'
604 global-settings-type: cfp
612 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
613 - email-notification:
614 email-prefix: '[faas]'
617 maven-version: '{mvn33}'
620 name: 'faas-clm-{stream}'
628 daysToKeep: '{build-days-to-keep}'
629 numToKeep: '{build-num-to-keep}'
630 artifactDaysToKeep: '{build-artifact-days-to-keep}'
631 artifactNumToKeep: '{build-artifact-num-to-keep}'
639 credentials-id: '{ssh-credentials}'
645 - ssh-agent-credentials:
647 - '{ssh-credentials}'
653 - provide-maven-settings:
654 global-settings-file: 'odl-global-settings'
655 settings-file: 'faas-settings'
658 maven-name: '{mvn33}'
660 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
661 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
662 settings: 'faas-settings'
664 global-settings: 'odl-global-settings'
665 global-settings-type: cfp
668 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
670 application-name: faas
673 - email-notification:
674 email-prefix: '[faas]'
676 maven-version: '{mvn33}'
679 name: 'faas-validate-autorelease-{stream}'
680 disabled: '{obj:disable_autorelease}'
688 daysToKeep: '{build-days-to-keep}'
689 numToKeep: '{build-num-to-keep}'
690 artifactDaysToKeep: '{build-artifact-days-to-keep}'
691 artifactNumToKeep: '{build-artifact-num-to-keep}'
699 refspec: 'refs/heads/{branch}'
700 - autorelease-release-tag:
701 release-tag: 'validate'
702 - autorelease-release-branch:
703 release-branch: '{branch}'
706 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
707 description: "Autorelease clone URL"
712 credentials-id: '{ssh-credentials}'
722 - autorelease-build-timeout
723 - ssh-agent-credentials:
725 - '{ssh-credentials}'
729 server-name: 'OpenDaylight'
731 - patchset-created-event:
732 exclude-drafts: 'true'
733 exclude-trivial-rebase: 'false'
734 exclude-no-code-change: 'true'
735 - draft-published-event
736 - comment-added-contains-event:
737 comment-contains-value: 'recheck'
738 - comment-added-contains-event:
739 comment-contains-value: 'reverify'
740 - comment-added-contains-event:
741 comment-contains-value: 'revalidate'
743 - project-compare-type: 'ANT'
744 project-pattern: 'faas'
746 - branch-compare-type: 'ANT'
747 branch-pattern: '**/{branch}'
753 - jacoco-nojava-workaround
754 - autorelease-checkout-gerrit-patch
755 - autorelease-generate-release-patches
757 maven-version: '{mvn33}'
758 pom: validate-pom.xml
759 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
762 settings: 'autorelease-settings'
764 global-settings: 'odl-global-settings'
765 global-settings-type: cfp
768 maven-name: '{mvn33}'
770 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
771 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
772 settings: 'autorelease-settings'
774 global-settings: 'odl-global-settings'
775 global-settings-type: cfp
776 automatic-archiving: false
777 post-step-run-condition: UNSTABLE
780 - autorelease-sys-stats
783 - email-notification:
784 email-prefix: '[autorelease] [faas]'
786 maven-version: '{mvn33}'