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 - 'persistence-verify-{stream}'
10 - 'persistence-merge-{stream}'
11 - 'persistence-periodic-{stream}'
12 - 'persistence-distribution-{stream}'
13 - 'persistence-distribution-check-{stream}'
14 - 'persistence-integration-{stream}'
16 - 'persistence-clm-{stream}'
17 - 'persistence-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
38 disable_distribution_check: False
40 branch: 'stable/lithium'
45 disable_autorelease: True
46 disable_distribution_check: True
48 project: 'persistence'
50 # For the Job templates below replace instances of:
51 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
52 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
53 # MAVEN_GOALS with your maven goals to build
54 # MAVEN_OPTS with your maven options to build
57 name: 'persistence-verify-{stream}'
59 # Job template for ODL verify jobs
61 # The purpose of this job template is to setup a ODL verify job
64 # stream: release stream (eg. stable-lithium or beryllium)
65 # branch: git branch (eg. stable/lithium or master)
90 refspec: 'refs/heads/{branch}'
94 credentials-id: '{ssh-credentials}'
95 refspec: '$GERRIT_REFSPEC'
96 choosing-strategy: 'gerrit'
99 - opendaylight-infra-wrappers:
100 build-timeout: '{build-timeout}'
103 - gerrit-trigger-patch-submitted:
108 - jacoco-nojava-workaround
109 - provide-maven-settings:
110 global-settings-file: 'odl-global-settings'
111 settings-file: 'persistence-settings'
113 maven-version: '{mvn33}'
115 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
117 - '-Xmx1024m -XX:MaxPermSize=256m'
118 settings: 'persistence-settings'
120 global-settings: 'odl-global-settings'
121 global-settings-type: cfp
125 artifacts: '**/target/surefire-reports/*-output.txt, '
127 - email-notification:
128 email-prefix: '[persistence]'
131 maven-version: '{mvn33}'
134 name: 'persistence-merge-{stream}'
136 # Job template for ODL merge jobs
138 # The purpose of this job template is to setup a ODL merge job
139 # and deploy artifacts to Nexus.
141 # Required Variables:
142 # stream: release stream (eg. stable-lithium or beryllium)
143 # branch: git branch (eg. stable/lithium or master)
152 artifactDaysToKeep: '{build-artifact-days-to-keep}'
153 artifactNumToKeep: '{build-artifact-num-to-keep}'
161 refspec: 'refs/heads/{branch}'
164 - gerrit-trigger-scm:
165 credentials-id: '{ssh-credentials}'
167 choosing-strategy: 'default'
170 - opendaylight-infra-wrappers:
171 build-timeout: '{build-timeout}'
175 - gerrit-trigger-patch-merged:
180 - jacoco-nojava-workaround
181 - provide-maven-settings:
182 global-settings-file: 'odl-global-settings'
183 settings-file: 'persistence-settings'
186 maven-name: '{mvn33}'
188 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
189 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
190 settings: 'persistence-settings'
192 global-settings: 'odl-global-settings'
193 global-settings-type: cfp
194 post-step-run-condition: UNSTABLE
198 condition-kind: file-exists
199 condition-filename: deploy-site.xml
200 condition-basedir: workspace
202 # The strategy here is intentional to run Maven site:deploy twice
203 # once using regular pom.xml to produce a staged-site which is
204 # then used by deploy-site.xml to push to Nexus. This is a
205 # workaround to Maven Site's default linking code which creates
206 # incorrect URLs for sites due to auto-detection assuming your
207 # project is configured in a certain way which ODL is not.
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -V -B -Dstream={stream}'
215 settings: 'persistence-settings'
217 global-settings: 'odl-global-settings'
218 global-settings-type: cfp
220 maven-version: '{mvn33}'
222 goals: 'site:deploy -V -B -Dstream={stream}'
225 settings: 'persistence-settings'
227 global-settings: 'odl-global-settings'
228 global-settings-type: cfp
235 artifacts: '**/target/surefire-reports/*-output.txt, '
236 - email-notification:
237 email-prefix: '[persistence]'
241 deploy-unstable: false
244 maven-version: '{mvn33}'
247 name: 'persistence-periodic-{stream}'
250 # Job template for periodic builders
252 # The purpose of this job template is to setup a periodic
255 # Required Variables:
256 # stream: release stream (eg. stable-lithium or beryllium)
257 # branch: git branch (eg. stable/lithium or master)
266 artifactDaysToKeep: '{build-artifact-days-to-keep}'
267 artifactNumToKeep: '{build-artifact-num-to-keep}'
275 credentials-id: '{ssh-credentials}'
280 - opendaylight-infra-wrappers:
281 build-timeout: '{build-timeout}'
287 - jacoco-nojava-workaround
288 - provide-maven-settings:
289 global-settings-file: 'odl-global-settings'
290 settings-file: 'persistence-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: 'persistence-settings'
299 global-settings: 'odl-global-settings'
300 global-settings-type: cfp
306 - email-notification:
307 email-prefix: '[persistence]'
310 maven-version: '{mvn33}'
313 name: 'persistence-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}'
340 - opendaylight-infra-wrappers:
341 build-timeout: '{build-timeout}'
345 jobs: '{project}-merge-{stream}'
349 - provide-maven-settings:
350 global-settings-file: 'odl-global-settings'
351 settings-file: 'persistence-settings'
354 maven-name: '{mvn33}'
356 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
357 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
358 settings: 'integration-distribution-settings'
360 global-settings: 'odl-global-settings'
361 global-settings-type: cfp
364 - email-notification:
365 email-prefix: '[{project}]'
369 deploy-unstable: false
371 maven-version: '{mvn33}'
373 # Template: integration-patch-distribution-{stream}
374 # Goal: Build a patch and make sure the distribution can deploy with this change
375 # Operation: This job template builds a patch, creates a distribution containing
376 # the patch, and triggers the distribution deploy test
379 name: 'persistence-distribution-check-{stream}'
380 disabled: '{obj:disable_distribution_check}'
388 daysToKeep: '{build-days-to-keep}'
389 numToKeep: '{build-num-to-keep}'
390 artifactDaysToKeep: '{build-artifact-days-to-keep}'
391 artifactNumToKeep: '{build-artifact-num-to-keep}'
397 refspec: 'refs/heads/{branch}'
400 - integration-distribution-git-url
403 - integration-gerrit-scm:
404 credentials-id: '{ssh-credentials}'
405 basedir: '$GERRIT_PROJECT'
406 refspec: '$GERRIT_REFSPEC'
408 - integration-distribution-scm:
409 credentials-id: '{ssh-credentials}'
413 - opendaylight-infra-wrappers:
414 build-timeout: '{build-timeout}'
418 server-name: 'OpenDaylight'
420 - patchset-created-event:
421 exclude-drafts: 'true'
422 exclude-trivial-rebase: 'false'
423 exclude-no-code-change: 'true'
424 - draft-published-event
425 - comment-added-contains-event:
426 comment-contains-value: 'test-distribution'
427 - comment-added-contains-event:
428 comment-contains-value: 'reverify'
429 - comment-added-contains-event:
430 comment-contains-value: 'recheck'
432 - project-compare-type: 'ANT'
433 project-pattern: '{name}'
435 - branch-compare-type: 'ANT'
436 branch-pattern: '**/{branch}'
445 maven-version: '{mvn33}'
446 pom: '$GERRIT_PROJECT/pom.xml'
447 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}'
449 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
450 settings: 'persistence-settings'
452 global-settings: 'odl-global-settings'
453 global-settings-type: cfp
456 maven-name: '{mvn33}'
457 root-pom: 'distribution/pom.xml'
458 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
459 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
460 settings: 'persistence-settings'
462 global-settings: 'odl-global-settings'
463 global-settings-type: cfp
464 ignore-upstream-changes: true
465 post-step-run-condition: 'SUCCESS'
468 - integration-distribution-check
471 - email-notification:
472 email-prefix: '[persistence]'
477 mkdir -p $WORKSPACE/archives
478 cp karaf*.log $WORKSPACE/archives
479 script-only-if-succeeded: False
480 script-only-if-failed: False
481 mark-unstable-if-failed: True
483 maven-version: '{mvn33}'
486 name: 'persistence-integration-{stream}'
489 # Job template for ODL integration verify jobs
491 # This is similar to a normal verify job, but it runs
492 # when a project that's a dependency of your project
493 # is successfully built.
495 # Required Variables:
496 # stream: release stream (eg. stable-lithium or beryllium)
497 # branch: git branch (eg. stable/lithium or master)
504 daysToKeep: '{build-days-to-keep}'
505 numToKeep: '{build-num-to-keep}'
506 artifactDaysToKeep: '{build-artifact-days-to-keep}'
507 artifactNumToKeep: '{build-artifact-num-to-keep}'
515 credentials-id: '{ssh-credentials}'
520 - opendaylight-infra-wrappers:
521 build-timeout: '{build-timeout}'
525 jobs: 'odlparent-merge-{stream}'
529 - jacoco-nojava-workaround
530 - provide-maven-settings:
531 global-settings-file: 'odl-global-settings'
532 settings-file: 'persistence-settings'
535 maven-name: '{mvn33}'
537 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
538 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
539 settings: 'persistence-settings'
541 global-settings: 'odl-global-settings'
542 global-settings-type: cfp
548 - email-notification:
549 email-prefix: '[persistence] [odlparent]'
552 maven-version: '{mvn33}'
555 name: 'persistence-sonar'
565 artifactDaysToKeep: '1'
566 artifactNumToKeep: '1'
574 credentials-id: '{ssh-credentials}'
579 - opendaylight-infra-wrappers:
580 build-timeout: '{build-timeout}'
584 - gerrit-trigger-patch-sonar:
588 - jacoco-nojava-workaround
589 - provide-maven-settings:
590 global-settings-file: 'odl-global-settings'
591 settings-file: 'persistence-settings'
594 maven-name: '{mvn33}'
596 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
597 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
598 settings: 'persistence-settings'
600 global-settings: 'odl-global-settings'
601 global-settings-type: cfp
609 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
610 - email-notification:
611 email-prefix: '[persistence]'
614 maven-version: '{mvn33}'
617 name: 'persistence-clm-{stream}'
625 daysToKeep: '{build-days-to-keep}'
626 numToKeep: '{build-num-to-keep}'
627 artifactDaysToKeep: '{build-artifact-days-to-keep}'
628 artifactNumToKeep: '{build-artifact-num-to-keep}'
636 credentials-id: '{ssh-credentials}'
641 - opendaylight-infra-wrappers:
642 build-timeout: '{build-timeout}'
648 - provide-maven-settings:
649 global-settings-file: 'odl-global-settings'
650 settings-file: 'persistence-settings'
653 maven-name: '{mvn33}'
655 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'
656 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
657 settings: 'persistence-settings'
659 global-settings: 'odl-global-settings'
660 global-settings-type: cfp
663 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
665 application-name: persistence
668 - email-notification:
669 email-prefix: '[persistence]'
671 maven-version: '{mvn33}'
674 name: 'persistence-validate-autorelease-{stream}'
675 disabled: '{obj:disable_autorelease}'
683 daysToKeep: '{build-days-to-keep}'
684 numToKeep: '{build-num-to-keep}'
685 artifactDaysToKeep: '{build-artifact-days-to-keep}'
686 artifactNumToKeep: '{build-artifact-num-to-keep}'
694 refspec: 'refs/heads/{branch}'
695 - autorelease-release-tag:
696 release-tag: 'validate'
697 - autorelease-release-branch:
698 release-branch: '{branch}'
701 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
702 description: "Autorelease clone URL"
707 credentials-id: '{ssh-credentials}'
717 - opendaylight-infra-wrappers:
718 build-timeout: '{build-timeout}'
722 server-name: 'OpenDaylight'
724 - patchset-created-event:
725 exclude-drafts: 'true'
726 exclude-trivial-rebase: 'false'
727 exclude-no-code-change: 'true'
728 - draft-published-event
729 - comment-added-contains-event:
730 comment-contains-value: 'recheck'
731 - comment-added-contains-event:
732 comment-contains-value: 'reverify'
733 - comment-added-contains-event:
734 comment-contains-value: 'revalidate'
736 - project-compare-type: 'ANT'
737 project-pattern: 'persistence'
739 - branch-compare-type: 'ANT'
740 branch-pattern: '**/{branch}'
746 - jacoco-nojava-workaround
747 - autorelease-checkout-gerrit-patch
748 - autorelease-generate-release-patches
750 maven-version: '{mvn33}'
751 pom: validate-pom.xml
752 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'
755 settings: 'autorelease-settings'
757 global-settings: 'odl-global-settings'
758 global-settings-type: cfp
761 maven-name: '{mvn33}'
763 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
764 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
765 settings: 'autorelease-settings'
767 global-settings: 'odl-global-settings'
768 global-settings-type: cfp
769 automatic-archiving: false
770 post-step-run-condition: UNSTABLE
773 - autorelease-sys-stats
776 - email-notification:
777 email-prefix: '[autorelease] [persistence]'
779 maven-version: '{mvn33}'