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 refspec: '$GERRIT_REFSPEC'
95 choosing-strategy: 'gerrit'
98 - opendaylight-infra-wrappers:
99 build-timeout: '{build-timeout}'
102 - gerrit-trigger-patch-submitted:
107 - jacoco-nojava-workaround
108 - provide-maven-settings:
109 global-settings-file: 'odl-global-settings'
110 settings-file: 'persistence-settings'
112 maven-version: '{mvn33}'
114 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
116 - '-Xmx1024m -XX:MaxPermSize=256m'
117 settings: 'persistence-settings'
119 global-settings: 'odl-global-settings'
120 global-settings-type: cfp
124 artifacts: '**/target/surefire-reports/*-output.txt, '
126 - email-notification:
127 email-prefix: '[persistence]'
130 maven-version: '{mvn33}'
133 name: 'persistence-merge-{stream}'
135 # Job template for ODL merge jobs
137 # The purpose of this job template is to setup a ODL merge job
138 # and deploy artifacts to Nexus.
140 # Required Variables:
141 # stream: release stream (eg. stable-lithium or beryllium)
142 # branch: git branch (eg. stable/lithium or master)
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
160 refspec: 'refs/heads/{branch}'
163 - gerrit-trigger-scm:
165 choosing-strategy: 'default'
168 - opendaylight-infra-wrappers:
169 build-timeout: '{build-timeout}'
173 - gerrit-trigger-patch-merged:
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: 'odl-global-settings'
181 settings-file: 'persistence-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: 'persistence-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: 'persistence-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: 'persistence-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: '[persistence]'
239 deploy-unstable: false
242 maven-version: '{mvn33}'
245 name: 'persistence-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}'
277 - opendaylight-infra-wrappers:
278 build-timeout: '{build-timeout}'
284 - jacoco-nojava-workaround
285 - provide-maven-settings:
286 global-settings-file: 'odl-global-settings'
287 settings-file: 'persistence-settings'
290 maven-name: '{mvn33}'
292 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
293 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294 settings: 'persistence-settings'
296 global-settings: 'odl-global-settings'
297 global-settings-type: cfp
303 - email-notification:
304 email-prefix: '[persistence]'
307 maven-version: '{mvn33}'
310 name: 'persistence-distribution-{stream}'
312 # Required variables:
313 # stream: release stream (eg. stable-lithium or beryllium)
314 # branch: git branch (eg. stable/lithium or master)
321 daysToKeep: '{build-days-to-keep}'
322 numToKeep: '{build-num-to-keep}'
323 artifactDaysToKeep: '{build-artifact-days-to-keep}'
324 artifactNumToKeep: '{build-artifact-num-to-keep}'
328 project: 'integration/distribution'
336 - opendaylight-infra-wrappers:
337 build-timeout: '{build-timeout}'
341 jobs: '{project}-merge-{stream}'
345 - provide-maven-settings:
346 global-settings-file: 'odl-global-settings'
347 settings-file: 'persistence-settings'
350 maven-name: '{mvn33}'
352 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
353 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
354 settings: 'integration-distribution-settings'
356 global-settings: 'odl-global-settings'
357 global-settings-type: cfp
360 - email-notification:
361 email-prefix: '[{project}]'
365 deploy-unstable: false
367 maven-version: '{mvn33}'
369 # Template: integration-patch-distribution-{stream}
370 # Goal: Build a patch and make sure the distribution can deploy with this change
371 # Operation: This job template builds a patch, creates a distribution containing
372 # the patch, and triggers the distribution deploy test
375 name: 'persistence-distribution-check-{stream}'
376 disabled: '{obj:disable_distribution_check}'
384 daysToKeep: '{build-days-to-keep}'
385 numToKeep: '{build-num-to-keep}'
386 artifactDaysToKeep: '{build-artifact-days-to-keep}'
387 artifactNumToKeep: '{build-artifact-num-to-keep}'
393 refspec: 'refs/heads/{branch}'
396 - integration-distribution-git-url
399 - integration-gerrit-scm:
400 basedir: '$GERRIT_PROJECT'
401 refspec: '$GERRIT_REFSPEC'
403 - integration-distribution-scm:
407 - opendaylight-infra-wrappers:
408 build-timeout: '{build-timeout}'
412 server-name: 'OpenDaylight'
414 - patchset-created-event:
415 exclude-drafts: 'true'
416 exclude-trivial-rebase: 'false'
417 exclude-no-code-change: 'true'
418 - draft-published-event
419 - comment-added-contains-event:
420 comment-contains-value: 'test-distribution'
421 - comment-added-contains-event:
422 comment-contains-value: 'reverify'
423 - comment-added-contains-event:
424 comment-contains-value: 'recheck'
426 - project-compare-type: 'ANT'
427 project-pattern: '{name}'
429 - branch-compare-type: 'ANT'
430 branch-pattern: '**/{branch}'
439 maven-version: '{mvn33}'
440 pom: '$GERRIT_PROJECT/pom.xml'
441 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}'
443 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
444 settings: 'persistence-settings'
446 global-settings: 'odl-global-settings'
447 global-settings-type: cfp
450 maven-name: '{mvn33}'
451 root-pom: 'distribution/pom.xml'
452 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
453 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
454 settings: 'persistence-settings'
456 global-settings: 'odl-global-settings'
457 global-settings-type: cfp
458 ignore-upstream-changes: true
459 post-step-run-condition: 'SUCCESS'
462 - integration-distribution-check
465 - email-notification:
466 email-prefix: '[persistence]'
471 mkdir -p $WORKSPACE/archives
472 cp karaf*.log $WORKSPACE/archives
473 script-only-if-succeeded: False
474 script-only-if-failed: False
475 mark-unstable-if-failed: True
477 maven-version: '{mvn33}'
480 name: 'persistence-integration-{stream}'
483 # Job template for ODL integration verify jobs
485 # This is similar to a normal verify job, but it runs
486 # when a project that's a dependency of your project
487 # is successfully built.
489 # Required Variables:
490 # stream: release stream (eg. stable-lithium or beryllium)
491 # branch: git branch (eg. stable/lithium or master)
498 daysToKeep: '{build-days-to-keep}'
499 numToKeep: '{build-num-to-keep}'
500 artifactDaysToKeep: '{build-artifact-days-to-keep}'
501 artifactNumToKeep: '{build-artifact-num-to-keep}'
513 - opendaylight-infra-wrappers:
514 build-timeout: '{build-timeout}'
518 jobs: 'odlparent-merge-{stream}'
522 - jacoco-nojava-workaround
523 - provide-maven-settings:
524 global-settings-file: 'odl-global-settings'
525 settings-file: 'persistence-settings'
528 maven-name: '{mvn33}'
530 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
531 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
532 settings: 'persistence-settings'
534 global-settings: 'odl-global-settings'
535 global-settings-type: cfp
541 - email-notification:
542 email-prefix: '[persistence] [odlparent]'
545 maven-version: '{mvn33}'
548 name: 'persistence-sonar'
558 artifactDaysToKeep: '1'
559 artifactNumToKeep: '1'
571 - opendaylight-infra-wrappers:
572 build-timeout: '{build-timeout}'
576 - gerrit-trigger-patch-sonar:
580 - jacoco-nojava-workaround
581 - provide-maven-settings:
582 global-settings-file: 'odl-global-settings'
583 settings-file: 'persistence-settings'
586 maven-name: '{mvn33}'
588 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
589 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
590 settings: 'persistence-settings'
592 global-settings: 'odl-global-settings'
593 global-settings-type: cfp
601 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
602 - email-notification:
603 email-prefix: '[persistence]'
606 maven-version: '{mvn33}'
609 name: 'persistence-clm-{stream}'
617 daysToKeep: '{build-days-to-keep}'
618 numToKeep: '{build-num-to-keep}'
619 artifactDaysToKeep: '{build-artifact-days-to-keep}'
620 artifactNumToKeep: '{build-artifact-num-to-keep}'
632 - opendaylight-infra-wrappers:
633 build-timeout: '{build-timeout}'
639 - provide-maven-settings:
640 global-settings-file: 'odl-global-settings'
641 settings-file: 'persistence-settings'
644 maven-name: '{mvn33}'
646 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'
647 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
648 settings: 'persistence-settings'
650 global-settings: 'odl-global-settings'
651 global-settings-type: cfp
654 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
656 application-name: persistence
659 - email-notification:
660 email-prefix: '[persistence]'
662 maven-version: '{mvn33}'
665 name: 'persistence-validate-autorelease-{stream}'
666 disabled: '{obj:disable_autorelease}'
674 daysToKeep: '{build-days-to-keep}'
675 numToKeep: '{build-num-to-keep}'
676 artifactDaysToKeep: '{build-artifact-days-to-keep}'
677 artifactNumToKeep: '{build-artifact-num-to-keep}'
685 refspec: 'refs/heads/{branch}'
686 - autorelease-release-tag:
687 release-tag: 'validate'
688 - autorelease-release-branch:
689 release-branch: '{branch}'
692 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
693 description: "Autorelease clone URL"
698 credentials-id: 'opendaylight-jenkins-ssh'
708 - opendaylight-infra-wrappers:
709 build-timeout: '{build-timeout}'
713 server-name: 'OpenDaylight'
715 - patchset-created-event:
716 exclude-drafts: 'true'
717 exclude-trivial-rebase: 'false'
718 exclude-no-code-change: 'true'
719 - draft-published-event
720 - comment-added-contains-event:
721 comment-contains-value: 'recheck'
722 - comment-added-contains-event:
723 comment-contains-value: 'reverify'
724 - comment-added-contains-event:
725 comment-contains-value: 'revalidate'
727 - project-compare-type: 'ANT'
728 project-pattern: 'persistence'
730 - branch-compare-type: 'ANT'
731 branch-pattern: '**/{branch}'
737 - jacoco-nojava-workaround
738 - autorelease-checkout-gerrit-patch
739 - autorelease-generate-release-patches
741 maven-version: '{mvn33}'
742 pom: validate-pom.xml
743 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'
746 settings: 'autorelease-settings'
748 global-settings: 'odl-global-settings'
749 global-settings-type: cfp
752 maven-name: '{mvn33}'
754 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
755 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
756 settings: 'autorelease-settings'
758 global-settings: 'odl-global-settings'
759 global-settings-type: cfp
760 automatic-archiving: false
761 post-step-run-condition: UNSTABLE
764 - autorelease-sys-stats
767 - email-notification:
768 email-prefix: '[autorelease] [persistence]'
770 maven-version: '{mvn33}'